Configure page list servlet client configurations

You can define PageListServlet configuration information in the IBM Web Extensions file. The IBM Web Extensions file is created and stored in the Web Applications archive (WAR) file by the Assembly Toolkit.

To configure and implement page lists:

  1. To configure page list information, use the Add Markup Language entry dialog of the Assembly Toolkit. On the Servlets tab of a Web deployment descriptor editor, select a servlet and click Add under WebSphere Extensions.

  2. Add the callPage() method to your servlet to invoke a JavaServer Page (JSP) file in response to a client request.

    The PageListServlet has a callPage() method that invokes a JSP file in response to the HTTP request for a page in a page list. The callPage() method can be invoked in one of the following ways...

    • callPage String(pageName, HttpServletRequest request, HttpServletResponse response)

      where the method arguments are...

      pageName A page name defined in the PageListServlet configuration

      request The HttpServletRequest object

      response The HttpServletResponse object

    • callPage String(mlName, String pageName, HttpServletRequest request, HttpServletResponse response)

      where the method arguments are...

      mlName A markup language type

      pageName A page name defined in the PageListServlet configuration

      request The HttpServletRequest object

      response The HttpServletResponse object

  3. Use the PageList Servlet client type detection support to determine the markup language type a calling client requires for the response.

 

See Also

Page lists
Client type detection support
client_types.xml
Example: Extending PageListServlet
Webapplications: Resources for learning