Configure page list servlet client configurations

 

Overview

We 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 an assembly tool.

To configure and implement page lists:

 

Procedure

  1. To configure page list information, use the Add Markup Language entry dialog of an assembly tool. 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

 

See Also


Web applications: Resources for learning