|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.jsp.JSPEngineImplNamedDispatcherInclude
public class JSPEngineImplNamedDispatcherInclude
Allows a Servlet or JSP to be used as a generator.
This implementation includes the servlet response using the RequestDispatcher from ServletContext.getNamedDispatcher().
Field Summary | |
---|---|
static String |
CONFIG_FORWARD
'forward' configuration parameter name for specifying whether or not the dispather should use forward instead of include. |
static String |
CONFIG_SERVLET_NAME
'servlet-name' configuration parameter name for specifying the servlet name to dispatch to. |
static boolean |
DEFAULT_FORWARD
Default value of CONFIG_FORWARD. |
static String |
DEFAULT_SERVLET_NAME
Default value of CONFIG_SERVLET_NAME. |
Fields inherited from interface org.apache.cocoon.components.jsp.JSPEngine |
---|
ROLE |
Constructor Summary | |
---|---|
JSPEngineImplNamedDispatcherInclude()
|
Method Summary | |
---|---|
byte[] |
executeJSP(String url,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse,
ServletContext servletContext)
Execute the Servlet and return the output. |
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. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_SERVLET_NAME
public static final String CONFIG_FORWARD
public static final String DEFAULT_SERVLET_NAME
*.jsp
,
this is the WLS JSP servlet default name.
public static final boolean DEFAULT_FORWARD
false
.
Constructor Detail |
---|
public JSPEngineImplNamedDispatcherInclude()
Method Detail |
---|
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.
Using the servlet-name
configuration parameter
you can specify the name of the Servlet to dispatch to.
parameterize
in interface Parameterizable
public byte[] executeJSP(String url, HttpServletRequest servletRequest, HttpServletResponse servletResponse, ServletContext servletContext) throws IOException, ServletException, Exception
executeJSP
in interface JSPEngine
IOException
ServletException
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |