Package | Description |
---|---|
org.apache.struts.action |
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
|
org.apache.struts.chain |
Contains the new
ComposableRequestProcessor
which was introduced in Struts 1.3. |
org.apache.struts.chain.commands |
Configurable commands
that may be placed within the request processor.
|
org.apache.struts.chain.commands.servlet |
Commands which are particular to servlet processing.
|
org.apache.struts.chain.contexts |
This package provides objects that encapsulate access to
the request and session-scoped resources to service
command processing.
|
org.apache.struts.config |
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file. |
org.apache.struts.config.impl |
Provides default implementation classes for the configuration objects.
|
org.apache.struts.faces.application | |
org.apache.struts.faces.component | |
org.apache.struts.faces.util | |
org.apache.struts.mock |
Mock objects of the Struts Framework.
|
org.apache.struts.plugins | |
org.apache.struts.taglib | |
org.apache.struts.taglib.html |
The "struts-html" tag library
contains JSP custom tags useful in creating dynamic HTML user interfaces,
including input forms.
|
org.apache.struts.tiles |
The Tiles taglib and framework allows building web pages by assembling reusable
pieces of pages, called Tiles.
|
org.apache.struts.upload |
The upload package facilities to upload files using
multi-part requests.
|
org.apache.struts.util |
The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
|
org.apache.struts.validator |
The validator package provides a series of classes to validate
ActionForm type of input. |
Modifier and Type | Field and Description |
---|---|
protected ModuleConfig |
RequestProcessor.moduleConfig
The
ModuleConfiguration with which we are
associated. |
Modifier and Type | Method and Description |
---|---|
protected ModuleConfig |
ActionServlet.getModuleConfig(javax.servlet.http.HttpServletRequest request)
Return the module configuration object for the currently selected
module.
|
protected ModuleConfig |
ActionServlet.initModuleConfig(String prefix,
String paths)
Initialize the module configuration information for the specified
module.
|
Modifier and Type | Method and Description |
---|---|
protected RequestProcessor |
ActionServlet.getRequestProcessor(ModuleConfig config)
Look up and return the
RequestProcessor responsible for the
specified module, creating a new one if necessary. |
void |
RequestProcessor.init(ActionServlet servlet,
ModuleConfig moduleConfig)
Initialize this request processor instance.
|
void |
PlugIn.init(ActionServlet servlet,
ModuleConfig config)
Receive notification that the specified module is being started
up.
|
protected void |
ActionServlet.initModuleActions(ModuleConfig config)
Initialize the action configs for the specified module.
|
protected void |
ActionServlet.initModuleExceptionConfigs(ModuleConfig config)
Initialize the exception handlers for the specified module.
|
protected void |
ActionServlet.initModuleFormBeans(ModuleConfig config)
Initialize the form beans for the specified module.
|
protected void |
ActionServlet.initModuleForwards(ModuleConfig config)
Initialize the forwards for the specified module.
|
protected void |
ActionServlet.initModuleMessageResources(ModuleConfig config)
Initialize the application
MessageResources for the
specified module. |
protected void |
ActionServlet.initModulePlugIns(ModuleConfig config)
Initialize the plug ins for the specified module.
|
protected ActionConfig |
ActionServlet.processActionConfigClass(ActionConfig actionConfig,
ModuleConfig moduleConfig)
Checks if the current actionConfig is using the correct class based
on the class of its ancestor ActionConfig.
|
protected void |
ActionServlet.processActionConfigExtension(ActionConfig actionConfig,
ModuleConfig moduleConfig)
Extend the action's configuration as necessary.
|
protected ExceptionConfig |
ActionServlet.processExceptionConfigClass(ExceptionConfig exceptionConfig,
ModuleConfig moduleConfig,
ActionConfig actionConfig)
Checks if the current exceptionConfig is using the correct class
based on the class of its configuration ancestor.
|
protected void |
ActionServlet.processExceptionExtension(ExceptionConfig exceptionConfig,
ModuleConfig moduleConfig,
ActionConfig actionConfig)
Extend the exception's configuration as necessary.
|
protected FormBeanConfig |
ActionServlet.processFormBeanConfigClass(FormBeanConfig beanConfig,
ModuleConfig moduleConfig)
Checks if the current beanConfig is using the correct class based on
the class of its ancestor form bean config.
|
protected void |
ActionServlet.processFormBeanExtension(FormBeanConfig beanConfig,
ModuleConfig moduleConfig)
Extend the form bean's configuration as necessary.
|
protected ForwardConfig |
ActionServlet.processForwardConfigClass(ForwardConfig forwardConfig,
ModuleConfig moduleConfig,
ActionConfig actionConfig)
Checks if the current forwardConfig is using the correct class based
on the class of its configuration ancestor.
|
protected void |
ActionServlet.processForwardExtension(ForwardConfig forwardConfig,
ModuleConfig moduleConfig,
ActionConfig actionConfig)
Extend the forward's configuration as necessary.
|
Modifier and Type | Method and Description |
---|---|
void |
ComposableRequestProcessor.init(ActionServlet servlet,
ModuleConfig moduleConfig)
Initialize this request processor instance.
|
protected void |
ComposableRequestProcessor.initCatalogFactory(ActionServlet servlet,
ModuleConfig moduleConfig)
Establish the CatalogFactory which will be used to look up the
catalog which has the request processing command.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ForwardConfig |
AbstractSelectInput.forward(ActionContext context,
ModuleConfig moduleConfig,
String uri)
Create and return a
ForwardConfig representing the
specified module-relative destination. |
protected abstract ForwardConfig |
AbstractSelectForward.forward(ActionContext context,
ModuleConfig moduleConfig,
String uri)
Create and return a
ForwardConfig representing the
specified module-relative destination. |
protected abstract ForwardConfig |
AbstractExceptionHandler.handle(ActionContext context,
Exception exception,
ExceptionConfig exceptionConfig,
ActionConfig actionConfig,
ModuleConfig moduleConfig)
Perform the required handling of the specified exception.
|
Modifier and Type | Method and Description |
---|---|
protected ForwardConfig |
SelectInput.forward(ActionContext context,
ModuleConfig moduleConfig,
String uri)
Create and return a
ForwardConfig representing the
specified module-relative destination. |
protected ForwardConfig |
SelectForward.forward(ActionContext context,
ModuleConfig moduleConfig,
String uri)
Create and return a
ForwardConfig representing the
specified module-relative destination. |
protected ForwardConfig |
ExceptionHandler.handle(ActionContext context,
Exception exception,
ExceptionConfig exceptionConfig,
ActionConfig actionConfig,
ModuleConfig moduleConfig) |
Modifier and Type | Method and Description |
---|---|
ModuleConfig |
WebActionContext.getModuleConfig() |
ModuleConfig |
ActionContext.getModuleConfig()
Get the ModuleConfig which is operative for the current request.
|
ModuleConfig |
ActionContextBase.getModuleConfig() |
Modifier and Type | Method and Description |
---|---|
ActionForm |
ActionContextBase.findOrCreateActionForm(String formName,
String scopeName,
ModuleConfig moduleConfig)
In the context of the given
ModuleConfig and this
ActionContext , look for an existing
ActionForm in the specified scope. |
void |
WebActionContext.setModuleConfig(ModuleConfig moduleConfig) |
void |
ActionContext.setModuleConfig(ModuleConfig config)
Set the ModuleConfig which is operative for the current request.
|
void |
ActionContextBase.setModuleConfig(ModuleConfig config) |
Modifier and Type | Field and Description |
---|---|
protected ModuleConfig |
ActionConfig.moduleConfig
The module configuration with which we are associated.
|
Modifier and Type | Method and Description |
---|---|
abstract ModuleConfig |
ModuleConfigFactory.createModuleConfig(String prefix)
Create and return a newly instansiated
ModuleConfig . |
ModuleConfig |
ActionConfig.getModuleConfig()
The module configuration with which we are associated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
FormBeanConfig.checkCircularInheritance(ModuleConfig moduleConfig)
Traces the hierarchy of this object to check if any of the ancestors
is extending this instance.
|
protected boolean |
ActionConfig.checkCircularInheritance(ModuleConfig moduleConfig)
Traces the hierarchy of this object to check if any of the ancestors
is extending this instance.
|
protected boolean |
ForwardConfig.checkCircularInheritance(ModuleConfig moduleConfig,
ActionConfig actionConfig)
Traces the hierarchy of this object to check if any of the ancestors
are extending this instance.
|
protected boolean |
ExceptionConfig.checkCircularInheritance(ModuleConfig moduleConfig,
ActionConfig actionConfig)
Traces the hierarchy of this object to check if any of the ancestors
are extending this instance.
|
void |
FormBeanConfig.processExtends(ModuleConfig moduleConfig)
Inherit configuration information from the FormBeanConfig that this
instance is extending.
|
void |
ActionConfig.processExtends(ModuleConfig moduleConfig)
Inherit configuration information from the ActionConfig that this
instance is extending.
|
void |
ForwardConfig.processExtends(ModuleConfig moduleConfig,
ActionConfig actionConfig)
Inherit configuration information from the ForwardConfig that this
instance is extending.
|
void |
ExceptionConfig.processExtends(ModuleConfig moduleConfig,
ActionConfig actionConfig)
Inherit configuration information from the ExceptionConfig that this
instance is extending.
|
void |
ActionConfig.setModuleConfig(ModuleConfig moduleConfig)
The module configuration with which we are associated.
|
Modifier and Type | Class and Description |
---|---|
class |
ModuleConfigImpl
The collection of static configuration information that describes a
Struts-based module.
|
Modifier and Type | Method and Description |
---|---|
ModuleConfig |
DefaultModuleConfigFactory.createModuleConfig(String prefix)
Create and return a newly instansiated
ModuleConfig . |
Modifier and Type | Method and Description |
---|---|
protected RequestProcessor |
ActionListenerImpl.getRequestProcessor(ModuleConfig config,
javax.servlet.ServletContext context)
Look up and return the
RequestProcessor responsible for
the specified module, creating a new one if necessary. |
Modifier and Type | Method and Description |
---|---|
ModuleConfig |
FormComponent.lookupModuleConfig(javax.faces.context.FacesContext context)
Return the
ModuleConfig for the application module
this form is being processed for. |
Modifier and Type | Method and Description |
---|---|
ModuleConfig |
StrutsContext.getModuleConfig()
Return the
ModuleConfig for the application module
to which this request has been assigned (if any). |
Modifier and Type | Field and Description |
---|---|
protected ModuleConfig |
TestMockBase.moduleConfig |
protected ModuleConfig |
TestMockBase.moduleConfig2 |
protected ModuleConfig |
TestMockBase.moduleConfig3 |
Modifier and Type | Field and Description |
---|---|
protected ModuleConfig |
ModuleConfigVerifier.config
The
ModuleConfig instance for our module. |
protected ModuleConfig |
DigestingPlugIn.moduleConfig |
Modifier and Type | Method and Description |
---|---|
void |
ModuleConfigVerifier.init(ActionServlet servlet,
ModuleConfig config) |
void |
DigestingPlugIn.init(ActionServlet servlet,
ModuleConfig config)
Initialize a
Digester and use it to parse a
configuration file, resulting in a root object which will be placed
into the ServletContext. |
Modifier and Type | Method and Description |
---|---|
ModuleConfig |
TagUtils.getModuleConfig(javax.servlet.jsp.PageContext pageContext)
Return the default ModuleConfig object if it exists, null if
otherwise.
|
ModuleConfig |
TagUtils.getModuleConfig(String module,
javax.servlet.jsp.PageContext pageContext)
Return the specified ModuleConfig object for the given prefix if it
exists, otherwise a NullPointerException will be thrown.
|
Modifier and Type | Method and Description |
---|---|
String |
TagUtils.pageURL(javax.servlet.http.HttpServletRequest request,
String page,
ModuleConfig moduleConfig)
Return the context-relative URL that corresponds to the specified
page attribute value, calculated based on the
pagePattern property of the current module's ModuleConfig . |
Modifier and Type | Field and Description |
---|---|
protected ModuleConfig |
FormTag.moduleConfig
The module configuration for our module.
|
Modifier and Type | Method and Description |
---|---|
protected ModuleConfig |
TilesUtilStrutsModulesImpl.getModuleConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext servletContext)
Get the current ModuleConfig.
|
Modifier and Type | Method and Description |
---|---|
protected Map |
TilesPlugin.findStrutsPlugInConfigProperties(ActionServlet servlet,
ModuleConfig config)
Find original properties set in the Struts PlugInConfig object.
|
DefinitionsFactory |
TilesUtilStrutsModulesImpl.getDefinitionsFactory(javax.servlet.ServletContext servletContext,
ModuleConfig moduleConfig)
Get definition factory for the module attached to specified moduleConfig.
|
DefinitionsFactory |
TilesUtilStrutsImpl.getDefinitionsFactory(javax.servlet.ServletContext servletContext,
ModuleConfig moduleConfig)
Get definition factory for the module attached to the specified moduleConfig.
|
protected RequestProcessor |
RedeployableActionServlet.getRequestProcessor(ModuleConfig config) |
void |
TilesPlugin.init(ActionServlet servlet,
ModuleConfig moduleConfig)
Receive notification that the specified module is being
started up.
|
void |
TilesRequestProcessor.init(ActionServlet servlet,
ModuleConfig moduleConfig)
Initialize this request processor instance.
|
protected void |
TilesPlugin.initRequestProcessorClass(ModuleConfig config)
Set RequestProcessor to appropriate Tiles
RequestProcessor . |
protected DefinitionsFactoryConfig |
TilesPlugin.readFactoryConfig(ActionServlet servlet,
ModuleConfig config)
Create FactoryConfig and initialize it from web.xml and struts-config.xml.
|
Modifier and Type | Method and Description |
---|---|
protected String |
CommonsMultipartRequestHandler.getRepositoryPath(ModuleConfig mc)
Returns the path to the temporary directory to be used for uploaded
files which are written to disk.
|
protected long |
CommonsMultipartRequestHandler.getSizeMax(ModuleConfig mc)
Returns the maximum allowable size, in bytes, of an uploaded file.
|
protected long |
CommonsMultipartRequestHandler.getSizeThreshold(ModuleConfig mc)
Returns the size threshold which determines whether an uploaded
file will be written to disk or cached in memory.
|
Modifier and Type | Method and Description |
---|---|
ModuleConfig |
ModuleUtils.getModuleConfig(javax.servlet.http.HttpServletRequest request)
Return the current ModuleConfig object stored in request, if it exists,
null otherwise.
|
ModuleConfig |
ModuleUtils.getModuleConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Return the ModuleConfig object is it exists, null otherwise.
|
ModuleConfig |
ModuleUtils.getModuleConfig(String prefix,
javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Return the desired ModuleConfig object stored in context, if it exists,
otherwise return the current ModuleConfig
|
ModuleConfig |
ModuleUtils.getModuleConfig(String prefix,
javax.servlet.ServletContext context)
Return the desired ModuleConfig object stored in context, if it exists,
null otherwise.
|
Modifier and Type | Method and Description |
---|---|
static String |
RequestUtils.actionIdURL(String originalPath,
ModuleConfig moduleConfig,
ActionServlet servlet)
Returns the true path of the destination action if the specified forward
is an action-aliased URL.
|
static ActionForm |
RequestUtils.createActionForm(javax.servlet.http.HttpServletRequest request,
ActionMapping mapping,
ModuleConfig moduleConfig,
ActionServlet servlet)
Create (if necessary) and return an
ActionForm instance
appropriate for this request. |
static String |
RequestUtils.forwardURL(javax.servlet.http.HttpServletRequest request,
ForwardConfig forward,
ModuleConfig moduleConfig)
Return the context-relative URL that corresponds to the specified
ForwardConfig . |
Modifier and Type | Method and Description |
---|---|
void |
ValidatorPlugIn.init(ActionServlet servlet,
ModuleConfig config)
Initialize and load our resources.
|
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.