1 Reply Latest reply on Mar 4, 2008 9:05 AM by bmachado

    Have a different login page for each portal

    andreas.s

      Hello,

      I'd like to customize the login page within the application.
      I managed to achieve this by editing the file login.jsp in the jboss-portal.sar/portal-server.war.
      However, I'd to run several portals on one portal server. Is it possible to have different login pages in that case, one for each portal?
      If yes, which is the descriptor/tag name, where I can reference the jsp?

      Thanks a lot in advance.

        • 1. Re: Have a different login page for each portal
          bmachado

          Hi,
          I don't know any tag to do that, but what I did in our project was to make different css stylesheet files for each portal customizing it. You can create css files naming with the ID of the respective portal, and get each css file according with the current portal.
          Example: login_default.css, login_portalA.css, login_portalB.css, login_portalC.css.

          To get the current portal id use:
          //portal node
          PortalNode portal = (PortalNode) request.getAttribute("org.jboss.portal.api.PORTAL_NODE");
          while (portal.getType() != PortalNode.TYPE_PORTAL) {
          portal = portal.getParent();
          }
          }