15.1.2 Using Customized JSP Pages from Access Manager 4.1 or Prior and Enabling the New Access Manager Portal

  1. Before upgrade, create a copy of all JSP files inside the /opt/novell/nids/lib/webapp/jsp directory and place the copy somewhere else.

    WARNING:The upgrade overwrites all existing JSP files.

  2. Upgrade Identity Server.

  3. Create an empty folder legacy.

  4. Add the legacy folder to Identity Server in the/opt/novell/nids/lib/webapp/WEB-INF/ directory using Advanced File Configurator.

    For information about how to add a folder, see Adding Configurations to a Clusterin the NetIQ Access Manager 5.0 Administration Guide.

    NOTE:If you do not create the legacy folder, Access Manager uses the logic of the default new login pages.

  5. Open customized nidp.jsp and content.jsp files and make the following changes in both files:

    For information about how to modify a file, see Adding Configurations to a Clusterin the NetIQ Access Manager 5.0 Administration Guide.

    1. In the top Java section of the JSP file, find the ContentHandler object that looks similar to the following:

      ContentHandler handler = new ContentHandler(request,response);
    2. In the code, add the following Java line under ContentHandler:

      boolean bGotoAlternateLandingPageUrl = handler.gotoAlternateLandingPageUrl();
    3. Find the first instance of <script></script> in the JSP file that is not <script src></script>, then insert the following line in to the JavaScript section between the <script></script> tags:

      <% if (bGotoAlternateLandingPageUrl) { %>
              document.location = "<%=handler.getAlternateLandingPageUrl()%>";
      <%  } %>

      This redirects control to the default portal page that contains appmarks.

  6. Refresh the browser to see the changes.