2 Replies Latest reply on Jan 25, 2006 12:52 PM by Thorsten Schmidt

    Attempt to use variable theme on login page

    Thorsten Schmidt Newbie

      Hello,

      in an attempt to customize the login page to use the currently set theme, which I believe is a pretty useful feature (its kind of annoying that it switches to 'nphalanx' by default), I tried the following:

      in portal-server.war/login.jsp I added

      <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
      <portlet:defineObjects/>

      to get access to the request object and then get the theme name and put it in the head of the page.

      However I get the following exception:
      [FormAuthenticator] Unexpected error forwarding to login page
      org.apache.jasper.JasperException the absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application.

      Well, this exception makes the problem obvious, however the solution is not :-)
      Is there any way I can introduce this taglib to the login.jsp ?

      Greetings Thorsten

      P.S.: still using portal 2.2.0, so if this is already dealt with please tell me.