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.tiles.actions | |
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 | Class and Description |
---|---|
class |
DynaActionForm
Specialized subclass of
ActionForm that allows the creation
of form beans with dynamic sets of properties, without requiring the
developer to create a Java class for each type of form bean. |
Modifier and Type | Method and Description |
---|---|
protected ActionForm |
RequestProcessor.processActionForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionMapping mapping)
Retrieve and return the
ActionForm associated with
this mapping, creating and retaining one if necessary. |
Modifier and Type | Method and Description |
---|---|
ActionForward |
Action.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it),
with provision for handling exceptions thrown by the business logic.
|
ActionForward |
Action.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Process the specified non-HTTP request, and create the
corresponding non-HTTP response (or forward to another web
component that will create it), with provision for handling
exceptions thrown by the business logic.
|
ActionForward |
ExceptionHandler.execute(java.lang.Exception ex,
ExceptionConfig ae,
ActionMapping mapping,
ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the
Exception . |
protected ActionForward |
RequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Action action,
ActionForm form,
ActionMapping mapping)
Ask the specified
Action instance to handle this
request. |
protected ActionForward |
RequestProcessor.processException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception exception,
ActionForm form,
ActionMapping mapping)
Ask our exception handler to handle the exception.
|
protected void |
RequestProcessor.processPopulate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionForm form,
ActionMapping mapping)
Populate the properties of the specified
ActionForm instance from
the request parameters included with this request. |
protected boolean |
RequestProcessor.processValidate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionForm form,
ActionMapping mapping)
If this request was not cancelled, and the request's
ActionMapping has not disabled validation, call the
validate method of the specified ActionForm ,
and forward to the input path if there were any errors. |
Modifier and Type | Method and Description |
---|---|
protected ActionForward |
ActionDispatcher.cancelled(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dispatches to the target class' cancelled method, if present,
otherwise returns null.
|
protected ActionForward |
DispatchAction.cancelled(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method which is dispatched to when the request is a cancel button submit.
|
protected ActionForward |
ActionDispatcher.dispatchMethod(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name)
Dispatch to the specified method.
|
protected ActionForward |
DispatchAction.dispatchMethod(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name)
Dispatch to the specified method.
|
protected ActionForward |
ActionDispatcher.dispatchMethod(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.reflect.Method method)
Dispatch to the specified method.
|
ActionForward |
SwitchAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
ActionForward |
ForwardAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it).
|
ActionForward |
LocaleAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Change the user's
Locale based on ActionForm
properties. |
ActionForward |
ActionDispatcher.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it).
|
ActionForward |
LookupDispatchAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it).
|
ActionForward |
DispatchAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it).
|
ActionForward |
MappingDispatchAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it).
|
ActionForward |
IncludeAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it).
|
ActionForward |
DownloadAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it).
|
protected java.lang.String |
ActionDispatcher.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
Returns the method name, given a parameter's value.
|
protected java.lang.String |
LookupDispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
Returns the method name, given a parameter's value.
|
protected java.lang.String |
DispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
Returns the method name, given a parameter's value.
|
protected java.lang.String |
MappingDispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
Returns the method name, given a parameter's value.
|
protected java.lang.String |
EventDispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
Returns the method name, given a parameter's value.
|
protected java.lang.String |
EventActionDispatcher.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String parameter)
Returns the method name, given a parameter's value.
|
protected java.lang.String |
ActionDispatcher.getParameter(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns the parameter value as influenced by the selected
ActionDispatcher.flavor specified for this ActionDispatcher . |
protected java.lang.String |
DispatchAction.getParameter(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns the parameter value.
|
protected abstract DownloadAction.StreamInfo |
DownloadAction.getStreamInfo(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns the information on the file, or other stream, to be downloaded
by this action.
|
protected ActionForward |
ActionDispatcher.unspecified(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dispatches to the target class'
unspecified method,
if present, otherwise throws a ServletException. |
protected ActionForward |
DispatchAction.unspecified(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method which is dispatched to when there is no value for specified
request parameter included in the request.
|
protected ActionForward |
MappingDispatchAction.unspecified(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method which is dispatched to when there is no value for the
parameter in the ActionMapping.
|
protected ActionForward |
EventDispatchAction.unspecified(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method which is dispatched to when there is no value for specified
request parameter included in the request.
|
protected ActionForward |
EventActionDispatcher.unspecified(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dispatches to the target class'
unspecified method, if
present, otherwise throws a ServletException. |
Modifier and Type | Method and Description |
---|---|
ActionForm |
FormBeanConfig.createActionForm(ActionServlet servlet)
Create and return an
ActionForm instance appropriate
to the information in this FormBeanConfig . |
ActionForm |
ConfigHelper.getActionForm() |
ActionForm |
ConfigHelperInterface.getActionForm() |
Modifier and Type | Method and Description |
---|---|
ActionForward |
TilesAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Original Struts Action's method.
|
ActionForward |
ReloadDefinitionsAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it),
with provision for handling exceptions thrown by the business logic.
|
ActionForward |
ViewDefinitionsAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it),
with provision for handling exceptions thrown by the business logic.
|
ActionForward |
DefinitionDispatcherAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP
response (or forward to another web component that will create it),
with provision for handling exceptions thrown by the business logic.
|
ActionForward |
TilesAction.execute(ComponentContext context,
ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the specified HTTP request and create the corresponding HTTP
response (or forward to another web component that will create it),
with provision for handling exceptions thrown by the business logic.
|
Modifier and Type | Method and Description |
---|---|
static ActionForm |
RequestUtils.createActionForm(FormBeanConfig config,
ActionServlet servlet)
Create and return an
ActionForm instance appropriate
to the information in config . |
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. |
private static ActionForm |
RequestUtils.lookupActionForm(javax.servlet.http.HttpServletRequest request,
java.lang.String attribute,
java.lang.String scope) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
RequestUtils.canReuseActionForm(ActionForm instance,
FormBeanConfig config)
Determine whether
instance of ActionForm is
suitable for re-use as an instance of the form described by
config . |
Modifier and Type | Class and Description |
---|---|
class |
BeanValidatorForm
Struts validator
ActionForm backed by either a DynaBean or POJO JavaBean. |
class |
DynaValidatorActionForm
This class extends DynaValidatorForm and provides
basic field validation based on an XML file.
|
class |
DynaValidatorForm
This class extends DynaActionForm and provides
basic field validation based on an XML file.
|
class |
LazyValidatorForm
Struts Lazy
ActionForm which wraps a LazyDynaBean . |
class |
ValidatorActionForm
This class extends ValidatorForm and provides
basic field validation based on an XML file.
|
class |
ValidatorForm
This class extends ActionForm and provides
basic field validation based on an XML file.
|
Copyright ? 2000-2014 - The Apache Software Foundation