AutoRegisterActionServlet
ActionServlet that dynamically registers modules based on naming/location conventions for Struts
configuration files that are generated by the Page Flow compiler. These files are located in
/WEB-INF/.pageflow-struts-generated, and are named jpf-struts-config-module-name.xml.
The user may specify additional PageFlowActionServlet.DefaultModuleConfigLocator
classes in web.xml, using the
"moduleConfigLocators" init-parameter; this allows the user to define other patterns for
auto-registered Struts modules.
Object
GenericServlet
HttpServlet
ActionServlet
AutoRegisterActionServlet
PageFlowActionServlet
Serializable
, Servlet
, ServletConfig
DynamicSubappActionServlet
Nested Class Summary |
public static class | PageFlowActionServlet.DefaultModuleConfigLocator
Default ModuleConfigLocator that looks for Struts module configuration files according to the pattern "/WEB-INF/.pageflow-struts-generated/jpf-struts-config-<module>". |
protected static class | PageFlowActionServlet.LegacyModuleConfigLocator
ModuleConfigLocator that looks for legacy Struts module configuration files according to the pattern "/WEB-INF/jpf-struts-config-<module>". |
Nested classes from com.bea.wlw.netui.pageflow. |
|
Field Summary |
Fields from com.bea.wlw.netui.pageflow. |
|
Fields from org.apache.struts.action. |
config, configDigester, convertNull, dataSources, debug, internal, internalName, log, processor, registrations, servletMapping, servletName |
Constructor Summary |
Method Summary |
protected |
|
public |
|
public void |
|
protected void |
|
Methods from com.bea.wlw.netui.pageflow. |
|
Methods from org.apache.struts.action. |
destroy, destroyApplications, destroyConfigDigester, destroyDataSources, destroyInternal, destroyModules, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getApplicationConfig, getDebug, getInternal, getModuleConfig, getRequestProcessor, getResources, init, initApplicationConfig, initApplicationDataSources, initApplicationMessageResources, initApplicationPlugIns, initConfigDigester, initDataSources, initInternal, initModuleConfig, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initOther, initServlet, log, process |
Methods from javax.servlet.http. |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods from javax.servlet. |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log, service |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface javax.servlet. |
destroy, getServletConfig, getServletInfo, init, service |
Methods from interface javax.servlet. |
getInitParameter, getInitParameterNames, getServletContext, getServletName |
Constructor Detail |
public PageFlowActionServlet()
Method Detail |
protected AutoRegisterActionServlet.ModuleConfigLocator
[] getDefaultModuleConfigLocators()
Get the base list of ModuleConfigLocators, to specify locations for auto-registered Struts modules. By default,
this ActionServlet auto-registers Struts modules whose configuration files are located at
"/WEB-INF/.pageflow-struts-generated/jpf-struts-config-<module>". Overriding this method allows
alternate locations to be specified. When an unrecognized Struts module is requested, each registered
ModuleConfigLocator is queried for a possible path to the configuration file for the module. If the
configuration file is found, the module is auto-registered against the file.
AutoRegisterActionServlet.getDefaultModuleConfigLocators()
publicGet the webapp-relative path to the Struts module configration file for a given module path. By default, this is "/WEB-INF/.pageflow-struts-generated/jpf-struts-config-<module>", but alternate locations can be specified by addingString
getModuleConfPath(String
modulePath)
PageFlowActionServlet.DefaultModuleConfigLocator
s.
AutoRegisterActionServlet.getModuleConfPath(String)
Related Topics
PageFlowActionServlet.getDefaultModuleConfigLocators()
public void init(ServletConfig
config)
throwsServletException
AutoRegisterActionServlet.init(ServletConfig)
ServletException
protected void process(Description copied fromHttpServletRequest
request,HttpServletResponse
response)
throwsIOException
,ServletException
AutoRegisterActionServlet.process(HttpServletRequest, HttpServletResponse)
AutoRegisterActionServlet.process(HttpServletRequest, HttpServletResponse)
IOException
ServletException