| org.apache.cocoon.components.jsp.JSPEngineImplNamedDispatcherInclude
JSPEngineImplNamedDispatcherInclude | public class JSPEngineImplNamedDispatcherInclude extends AbstractLogEnabled implements JSPEngine,Parameterizable,ThreadSafe(Code) | | Allows a Servlet or JSP to be used as a generator.
This implementation includes the servlet response using the
RequestDispatcher from ServletContext.getNamedDispatcher().
author: Davanum Srinivas author: Bernhard Huber version: CVS $Id: JSPEngineImplNamedDispatcherInclude.java 433543 2006-08-22 06:22:54Z crossley $ |
Field Summary | |
final public static String | CONFIG_FORWARD 'forward' configuration parameter name for specifying
whether or not the dispather should use forward
instead of include. | final public static String | CONFIG_SERVLET_NAME 'servlet-name' configuration parameter name for specifying
the servlet name to dispatch to. | final public static boolean | DEFAULT_FORWARD Default value of CONFIG_FORWARD. | final public static String | DEFAULT_SERVLET_NAME Default value of CONFIG_SERVLET_NAME. |
Method Summary | |
public byte[] | executeJSP(String url, HttpServletRequest servletRequest, HttpServletResponse servletResponse, ServletContext servletContext) Execute the Servlet and return the output. | public void | parameterize(Parameters params)
The forward configuration parameter allows you to
control whether to use the forward dispatch method instead of
the include method which is used by default. |
CONFIG_FORWARD | final public static String CONFIG_FORWARD(Code) | | 'forward' configuration parameter name for specifying
whether or not the dispather should use forward
instead of include.
|
CONFIG_SERVLET_NAME | final public static String CONFIG_SERVLET_NAME(Code) | | 'servlet-name' configuration parameter name for specifying
the servlet name to dispatch to.
|
DEFAULT_FORWARD | final public static boolean DEFAULT_FORWARD(Code) | | Default value of CONFIG_FORWARD.
The value is false .
|
DEFAULT_SERVLET_NAME | final public static String DEFAULT_SERVLET_NAME(Code) | | Default value of CONFIG_SERVLET_NAME.
The value is *.jsp ,
this is the WLS JSP servlet default name.
|
parameterize | public void parameterize(Parameters params)(Code) | |
The forward configuration parameter allows you to
control whether to use the forward dispatch method instead of
the include method which is used by default.
Using the servlet-name configuration parameter
you can specify the name of the Servlet to dispatch to.
|
|
|