Servlet Class: atg.portal.servlet.PageTemplateDispatcherServlet

The Page Template Dispatch Servlet is a servlet, not a filter, and is not part of the Portal Filter Chain. Once the Portal Filter Chain has finished handling and transforming the Portal request, the request is dispatched to its target. If no particular page file is specified in the request or if the request is not diverted first (for example, by the Offline Filter or Access Filter), then the request will be dispatched to the Page Template Dispatch Servlet. The Page Template Dispatch Servlet is responsible for dispatching the request to the community’s page template. The COMMUNITY, DISPLAYMODE, and DEVICE attributes will have been set by filters in the Portal Filter Chain. These request attributes are used by the Page Template Dispatch Servlet to determine the location of the page templates. Once the page template has been determined, the Page Template Dispatch Servlet forwards the request to the page template for processing.

The Page Template Dispatch Servlet is configured in the Web application’s deployment descriptor file, just as each element of the Portal Filter Chain is, but using a <servlet> tag rather than a <filter> tag. By default, the servlet mapping of the Page Template Dispatch Servlet uses a URL pattern of /, which maps to the default servlet.

Page Template Dispatch Servlet Parameters

The following init parameters can be used to control the behavior of the Page Template Dispatch Servlet:

Parameter

Description

methodName

The method used to dispatch requests. Defaults to forward.

defaultDisplayModeName

The name of the display mode to use if none was set. Defaults to shared.

defaultDeviceOutputName

The name of the device output to use if none was set. Defaults to htmlURL.


Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices