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.actions |
The actions package provides special adapters between the incoming HTTP
request and the corresponding business logic.
|
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 | |
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(java.lang.String prefix,
java.lang.String paths)
Initialize the module configuration information for the
specified module.
|
Modifier and Type | Method and Description |
---|---|
private RequestProcessor |
ActionServlet.getProcessorForModule(ModuleConfig config)
Returns the RequestProcessor for the given module or null if one does not
exist.
|
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.initModuleDataSources(ModuleConfig config)
Initialize the data sources 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.
|
Modifier and Type | Method and Description |
---|---|
protected RequestProcessor |
RedeployableActionServlet.getRequestProcessor(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(java.lang.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 |
---|---|
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(java.lang.String prefix)
Create and return a newly instansiated
ModuleConfig . |
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 |
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. |
void |
ModuleConfigVerifier.init(ActionServlet servlet,
ModuleConfig config) |
Modifier and Type | Method and Description |
---|---|
ModuleConfig |
TagUtils.getModuleConfig(javax.servlet.jsp.PageContext pageContext)
Return the ModuleConfig object if it exists, null if otherwise.
|
ModuleConfig |
TagUtils.getModuleConfig(java.lang.String module,
javax.servlet.jsp.PageContext pageContext)
Return the ModuleConfig object for the given prefix if it exists, null if otherwise.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
TagUtils.pageURL(javax.servlet.http.HttpServletRequest request,
java.lang.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 |
---|---|
private java.lang.String |
JavascriptValidatorTag.createDynamicJavascript(ModuleConfig config,
org.apache.commons.validator.ValidatorResources resources,
java.util.Locale locale,
org.apache.commons.validator.Form form)
Generates the dynamic JavaScript for the form.
|
private boolean |
ImgTag.srcDefaultReference(ModuleConfig config)
Convenience method to test whether this is the default module
or if contestRelative has been set.
|
private boolean |
JavascriptValidatorTag.stopOnError(ModuleConfig config)
Determines if validations should stop on an error.
|
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 java.util.Map |
TilesPlugin.findStrutsPlugInConfigProperties(ActionServlet servlet,
ModuleConfig config)
Find original properties set in the Struts PlugInConfig object.
|
DefinitionsFactory |
TilesUtilStrutsImpl.getDefinitionsFactory(javax.servlet.ServletContext servletContext,
ModuleConfig moduleConfig)
Get definition factory for the module attached to the specified moduleConfig.
|
DefinitionsFactory |
TilesUtilStrutsModulesImpl.getDefinitionsFactory(javax.servlet.ServletContext servletContext,
ModuleConfig moduleConfig)
Get definition factory for the module attached to specified moduleConfig.
|
void |
TilesRequestProcessor.init(ActionServlet servlet,
ModuleConfig moduleConfig)
Initialize this request processor instance.
|
void |
TilesPlugin.init(ActionServlet servlet,
ModuleConfig moduleConfig)
Receive notification that the specified module is being
started up.
|
private void |
TilesPlugin.initDefinitionsFactory(javax.servlet.ServletContext servletContext,
ModuleConfig moduleConfig,
DefinitionsFactoryConfig factoryConfig)
Initialize the DefinitionsFactory this module will use.
|
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 java.lang.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.
|
protected void |
DiskMultipartRequestHandler.retrieveTempDir(ModuleConfig moduleConfig)
Deprecated.
Retrieves the temporary directory from either ActionServlet, a context
property, or a system property, in that order.
|
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.
|
static ModuleConfig |
RequestUtils.getModuleConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Deprecated.
Use
ModuleUtils.getModuleConfig(HttpServletRequest,ServletContext) instead.
This will be removed after Struts 1.2. |
static ModuleConfig |
RequestUtils.getModuleConfig(javax.servlet.jsp.PageContext pageContext)
Deprecated.
Use
TagUtils.getModuleConfig(PageContext) instead.
This will be removed after Struts 1.2. |
ModuleConfig |
ModuleUtils.getModuleConfig(java.lang.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(java.lang.String prefix,
javax.servlet.ServletContext context)
Return the desired ModuleConfig object stored in context, if it exists,
null otherwise.
|
static ModuleConfig |
RequestUtils.getRequestModuleConfig(javax.servlet.http.HttpServletRequest request)
Deprecated.
Use
ModuleUtils.getModuleConfig(HttpServletRequest) instead.
This will be removed after Struts 1.2. |
Modifier and Type | Method and Description |
---|---|
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 java.lang.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 | Field and Description |
---|---|
private ModuleConfig |
ValidatorPlugIn.config
The module configuration for our owning module.
|
Modifier and Type | Method and Description |
---|---|
void |
ValidatorPlugIn.init(ActionServlet servlet,
ModuleConfig config)
Initialize and load our resources.
|
Copyright ? 2000-2014 - The Apache Software Foundation