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.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.tiles |
The Tiles taglib and framework allows building web pages by assembling reusable
pieces of pages, called Tiles.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ActionForward
An ActionForward represents a destination to which the
controller, RequestProcessor, might be directed to perform a
RequestDispatcher.forward or HttpServletResponse.sendRedirect to, as a
result of processing activities of an Action class.
|
class |
ActionRedirect
A subclass of
ActionForward which is designed for use in
redirecting requests, with support for adding parameters at runtime. |
class |
ForwardingActionForward
A subclass of
ActionForward that defaults the
redirect attribute to false . |
class |
RedirectingActionForward
A subclass of ActionForward that defaults the
redirect attribute to true . |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ForwardConfig forward)
Forward or redirect to the specified destination, by the specified
mechanism.
|
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.
|
Constructor and Description |
---|
ActionRedirect(ForwardConfig baseConfig)
Construct a new instance with a
ForwardConfig object to copy
name, path, contextRelative, and arbitrary property values from. |
Modifier and Type | Method and Description |
---|---|
protected abstract ForwardConfig |
AbstractExecuteAction.execute(ActionContext context,
Action action,
ActionConfig actionConfig,
ActionForm actionForm)
Execute the specified
Action , and return the resulting
ForwardConfig . |
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 abstract void |
AbstractPerformForward.perform(ActionContext context,
ForwardConfig forwardConfig)
Perform the appropriate processing on the specified
ForwardConfig . |
Modifier and Type | Method and Description |
---|---|
protected ForwardConfig |
ExecuteAction.execute(ActionContext context,
Action action,
ActionConfig actionConfig,
ActionForm actionForm)
Execute the specified
Action , and return the resulting
ActionForward . |
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 |
---|---|
protected void |
PerformForward.perform(ActionContext context,
ForwardConfig forwardConfig)
Perform the appropriate processing on the specified
ForwardConfig . |
Modifier and Type | Method and Description |
---|---|
ForwardConfig |
ActionContext.getForwardConfig()
Get the ForwardConfig which has been identified as the basis for
view-processing.
|
ForwardConfig |
ActionContextBase.getForwardConfig() |
Modifier and Type | Method and Description |
---|---|
void |
ActionContext.setForwardConfig(ForwardConfig forward)
Set the ForwardConfig which should be used as the basis of the view
segment of the overall processing.
|
void |
ActionContextBase.setForwardConfig(ForwardConfig forward) |
Modifier and Type | Method and Description |
---|---|
ForwardConfig |
ActionConfig.findForwardConfig(String name)
Return the forward configuration for the specified key, if any;
otherwise return
null . |
ForwardConfig |
ModuleConfig.findForwardConfig(String name)
Return the forward configuration for the specified key, if any;
otherwise return
null . |
ForwardConfig[] |
ActionConfig.findForwardConfigs()
Return all forward configurations for this module.
|
ForwardConfig[] |
ModuleConfig.findForwardConfigs()
Return the form bean configurations for this module.
|
Modifier and Type | Method and Description |
---|---|
void |
ActionConfig.addForwardConfig(ForwardConfig config)
Add a new
ForwardConfig instance to the set of global
forwards associated with this action. |
void |
ModuleConfig.addForwardConfig(ForwardConfig config)
Add a new
ForwardConfig instance to the set of global
forwards associated with this module. |
void |
ForwardConfig.inheritFrom(ForwardConfig config)
Inherit values that have not been overridden from the provided
config object.
|
void |
ActionConfig.removeForwardConfig(ForwardConfig config)
Remove the specified forward configuration instance.
|
void |
ModuleConfig.removeForwardConfig(ForwardConfig config)
Remove the specified forward configuration instance.
|
Constructor and Description |
---|
ForwardConfig(ForwardConfig copyMe)
Construct a new instance based on the values of another
ForwardConfig.
|
Modifier and Type | Method and Description |
---|---|
ForwardConfig |
ModuleConfigImpl.findForwardConfig(String name)
Return the forward configuration for the specified key, if any;
otherwise return
null . |
ForwardConfig[] |
ModuleConfigImpl.findForwardConfigs()
Return the form bean configurations for this module.
|
Modifier and Type | Method and Description |
---|---|
void |
ModuleConfigImpl.addForwardConfig(ForwardConfig config)
Add a new
ForwardConfig instance to the set of global
forwards associated with this module. |
void |
ModuleConfigImpl.removeForwardConfig(ForwardConfig config)
Remove the specified forward configuration instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FacesRequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ForwardConfig forward) |
protected void |
FacesTilesRequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ForwardConfig forward) |
Modifier and Type | Method and Description |
---|---|
protected void |
TilesRequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ForwardConfig forward)
Overloaded method from Struts' RequestProcessor.
|
Modifier and Type | Method and Description |
---|---|
static String |
RequestUtils.actionIdURL(ForwardConfig forward,
javax.servlet.http.HttpServletRequest request,
ActionServlet servlet)
Returns the true path of the destination action if the specified forward
is an action-aliased URL.
|
static String |
RequestUtils.forwardURL(javax.servlet.http.HttpServletRequest request,
ForwardConfig forward)
Return the context-relative URL that corresponds to the specified
ForwardConfig . |
static String |
RequestUtils.forwardURL(javax.servlet.http.HttpServletRequest request,
ForwardConfig forward,
ModuleConfig moduleConfig)
Return the context-relative URL that corresponds to the specified
ForwardConfig . |
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.