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.chain.commands |
Configurable commands
that may be placed within the request processor.
|
org.apache.struts.chain.commands.generic |
Contains generic commands.
|
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.faces.application | |
org.apache.struts.mock |
Mock objects of the Struts Framework.
|
org.apache.struts.scripting |
The scripting package is the core of the Struts Scripting framework,
which builds on Struts Action to allow Struts Actions be written
with the scripting language of your choice.
|
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(Exception ex,
ExceptionConfig ae,
ActionMapping mapping,
ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle the Exception.
|
protected void |
ExceptionHandler.handleCommittedResponse(Exception ex,
ExceptionConfig config,
ActionMapping mapping,
ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionForward actionForward)
Attempt to give good information when the response has already been
committed when the exception was thrown.
|
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,
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,
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,
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,
String name,
Method method)
Dispatch to the specified method.
|
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 |
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 |
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 |
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 |
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).
|
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 |
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 |
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 |
SwitchAction.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 String |
EventActionDispatcher.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameter)
Returns the method name, given a parameter's value.
|
protected String |
ActionDispatcher.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameter)
Returns the method name, given a parameter's value.
|
protected String |
MappingDispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameter)
Returns the method name, given a parameter's value.
|
protected String |
DispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameter)
Returns the method name, given a parameter's value.
|
protected String |
LookupDispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameter)
Returns the method name, given a parameter's value.
|
protected String |
EventDispatchAction.getMethodName(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameter)
Returns the method name, given a parameter's value.
|
protected 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 String |
MappingDispatchAction.getParameter(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns the parameter value.
|
protected 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 |
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. |
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 |
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 |
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 |
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.
|
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 void |
AbstractPopulateActionForm.handleCancel(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm)
Take into account whether the request includes any defined value for
the global "cancel" parameter.
|
protected abstract void |
AbstractPopulateActionForm.populate(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm)
Populate the given
ActionForm with request parameter
values, taking into account any prefix/suffix values configured on the
given ActionConfig . |
protected abstract void |
AbstractPopulateActionForm.reset(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm)
Call the
reset() method on the specified form
bean. |
protected abstract ActionErrors |
AbstractValidateActionForm.validate(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm)
Call the
validate() method of the specified form bean,
and return the resulting ActionErrors object. |
Modifier and Type | Method and Description |
---|---|
protected ActionForm |
CopyFormToContext.findOrCreateForm(ActionContext context)
Based on the properties of this command and the given
ActionContext , find or create an ActionForm instance for
preparation. |
protected ActionForm |
CopyFormToContext.findOrCreateForm(ActionContext ctx,
String effectiveFormName,
String effectiveScope)
Actually find or create an instance of ActionForm configured under
the form-bean-name
effectiveFormName , looking in in the
ActionContext's scope as identified by
effectiveScope . |
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 void |
PopulateActionForm.populate(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm) |
protected void |
PopulateActionForm.reset(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm) |
protected ActionErrors |
ValidateActionForm.validate(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm)
Call the
validate() method of the specified form bean,
and return the resulting ActionErrors object. |
Modifier and Type | Method and Description |
---|---|
ActionForm |
ActionContextBase.findOrCreateActionForm(String formName,
String scopeName)
Using this
ActionContext 's default
ModuleConfig , return an existing ActionForm
in the specified scope, or create a new one and add it to the specified
scope. |
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. |
ActionForm |
ActionContext.getActionForm()
Get the ActionForm instance which will carry any data submitted as
part of this request.
|
ActionForm |
ActionContextBase.getActionForm() |
Modifier and Type | Method and Description |
---|---|
void |
ActionContext.setActionForm(ActionForm form)
Set the ActionForm instance which will carry any data submitted as
part of this request.
|
void |
ActionContextBase.setActionForm(ActionForm form) |
Modifier and Type | Method and Description |
---|---|
ActionForm |
FormBeanConfig.createActionForm(ActionContext context)
Create and return an
ActionForm instance appropriate to
the information in this FormBeanConfig . |
ActionForm |
FormBeanConfig.createActionForm(ActionServlet servlet)
Create and return an
ActionForm instance appropriate to
the information in this FormBeanConfig . |
ActionForm |
ConfigHelperInterface.getActionForm()
Retrieve and return the
ActionForm bean associated
with this mapping, creating and stashing one if necessary. |
ActionForm |
ConfigHelper.getActionForm() |
Modifier and Type | Method and Description |
---|---|
boolean |
FormBeanConfig.canReuse(ActionForm form)
Checks if the given
ActionForm instance is suitable for
use as an alternative to calling this FormBeanConfig
instance's createActionForm method. |
Modifier and Type | Method and Description |
---|---|
protected ActionForm |
FacesTilesRequestProcessor.processActionForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionMapping mapping) |
protected ActionForm |
FacesRequestProcessor.processActionForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionMapping mapping) |
Modifier and Type | Method and Description |
---|---|
protected ActionForward |
FacesTilesRequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Action action,
ActionForm form,
ActionMapping mapping) |
protected ActionForward |
FacesRequestProcessor.processActionPerform(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Action action,
ActionForm form,
ActionMapping mapping) |
protected void |
FacesTilesRequestProcessor.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,
IF this is a non-Faces request. |
protected void |
FacesRequestProcessor.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,
IF this is a non-Faces request. |
protected boolean |
FacesTilesRequestProcessor.processValidate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionForm form,
ActionMapping mapping) |
protected boolean |
FacesRequestProcessor.processValidate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionForm form,
ActionMapping mapping) |
Modifier and Type | Class and Description |
---|---|
class |
MockFormBean
General purpose form bean for unit tests.
|
Modifier and Type | Method and Description |
---|---|
ActionForm |
StrutsInfo.getForm()
Gets the action form.
|
Modifier and Type | Method and Description |
---|---|
ActionForward |
ScriptAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executes the script.
|
void |
StrutsInfo.setForm(ActionForm form)
Sets the action form.
|
Constructor and Description |
---|
StrutsInfo(ScriptAction action,
ActionMapping mapping,
ActionForm form,
MessageResources res)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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 |
TilesAction.execute(ActionMapping mapping,
ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Original Struts Action's method.
|
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. |
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–2017 Apache Software Foundation. All rights reserved.