Uses of Class
org.apache.struts.action.ActionForm
Package
Description
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
Configurable commands that may be placed within the
request processor.
Contains generic commands.
Commands which are particular to servlet processing.
This package provides objects that encapsulate access to
the request and session-scoped resources to service
command processing.
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file. The actions package provides special adapters between the incoming HTTP
request and the corresponding business logic.
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.
The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
The validator package provides a series of classes to validate
ActionForm
type of input.-
Uses of ActionForm in org.apache.struts.action
Modifier and TypeClassDescriptionclass
Specialized subclass ofActionForm
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 TypeMethodDescriptionprotected ActionForm
RequestProcessor.processActionForm
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Retrieve and return theActionForm
associated with this mapping, creating and retaining one if necessary.Modifier and TypeMethodDescriptionAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.Action.execute
(ActionMapping mapping, ActionForm form, ServletRequest request, 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.ExceptionHandler.execute
(Exception ex, ExceptionConfig ae, ActionMapping mapping, ActionForm formInstance, HttpServletRequest request, HttpServletResponse response) Handle the Exception.protected void
ExceptionHandler.handleCommittedResponse
(Exception ex, ExceptionConfig config, ActionMapping mapping, ActionForm formInstance, HttpServletRequest request, 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
(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) Ask the specifiedAction
instance to handle this request.protected ActionForward
RequestProcessor.processException
(HttpServletRequest request, HttpServletResponse response, Exception exception, ActionForm form, ActionMapping mapping) Ask our exception handler to handle the exception.protected void
RequestProcessor.processPopulate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) Populate the properties of the specifiedActionForm
instance from the request parameters included with this request.protected boolean
RequestProcessor.processValidate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) If this request was not cancelled, and the request'sActionMapping
has not disabled validation, call thevalidate
method of the specifiedActionForm
, and forward to the input path if there were any errors. -
Uses of ActionForm in org.apache.struts.chain.commands
Modifier and TypeMethodDescriptionprotected abstract ForwardConfig
AbstractExecuteAction.execute
(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction
, and return the resultingForwardConfig
.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 givenActionForm
with request parameter values, taking into account any prefix/suffix values configured on the givenActionConfig
.protected abstract void
AbstractPopulateActionForm.reset
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thereset()
method on the specified form bean.protected abstract ActionErrors
AbstractValidateActionForm.validate
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thevalidate()
method of the specified form bean, and return the resultingActionErrors
object. -
Uses of ActionForm in org.apache.struts.chain.commands.generic
Modifier and TypeMethodDescriptionprotected ActionForm
CopyFormToContext.findOrCreateForm
(ActionContext context) Based on the properties of this command and the givenActionContext
, find or create anActionForm
instance for preparation.protected ActionForm
CopyFormToContext.findOrCreateForm
(ActionContext ctx, String effectiveFormName, String effectiveScope) Actually find or create an instance ofActionForm
configured under the form-bean-nameeffectiveFormName
, looking in in theActionContext's
scope as identified byeffectiveScope
. -
Uses of ActionForm in org.apache.struts.chain.commands.servlet
Modifier and TypeMethodDescriptionprotected ForwardConfig
ExecuteAction.execute
(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction
, and return the resultingActionForward
.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 thevalidate()
method of the specified form bean, and return the resultingActionErrors
object. -
Uses of ActionForm in org.apache.struts.chain.contexts
Modifier and TypeMethodDescriptionActionContextBase.findOrCreateActionForm
(String formName, String scopeName) Using thisActionContext
's defaultModuleConfig
, return an existingActionForm
in the specified scope, or create a new one and add it to the specified scope.ActionContextBase.findOrCreateActionForm
(String formName, String scopeName, ModuleConfig moduleConfig) In the context of the givenModuleConfig
and thisActionContext
, look for an existingActionForm
in the specified scope.ActionContext.getActionForm()
Get the ActionForm instance which will carry any data submitted as part of this request.ActionContextBase.getActionForm()
Modifier and TypeMethodDescriptionvoid
ActionContext.setActionForm
(ActionForm form) Set the ActionForm instance which will carry any data submitted as part of this request.void
ActionContextBase.setActionForm
(ActionForm form) -
Uses of ActionForm in org.apache.struts.config
Modifier and TypeMethodDescriptionFormBeanConfig.createActionForm
(ActionServlet servlet) Create and return anActionForm
instance appropriate to the information in thisFormBeanConfig
.FormBeanConfig.createActionForm
(ActionContext context) Create and return anActionForm
instance appropriate to the information in thisFormBeanConfig
.ConfigHelper.getActionForm()
ConfigHelperInterface.getActionForm()
Retrieve and return theActionForm
bean associated with this mapping, creating and stashing one if necessary.Modifier and TypeMethodDescriptionboolean
FormBeanConfig.canReuse
(ActionForm form) Checks if the givenActionForm
instance is suitable for use as an alternative to calling thisFormBeanConfig
instance'screateActionForm
method. -
Uses of ActionForm in org.apache.struts.extras.actions
Modifier and TypeMethodDescriptionprotected ActionForward
ActionDispatcher.cancelled
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Dispatches to the target class' cancelled method, if present, otherwise returns null.protected ActionForward
DispatchAction.cancelled
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Method which is dispatched to when the request is a cancel button submit.protected ActionForward
ActionDispatcher.dispatchMethod
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String name) Dispatch to the specified method.protected ActionForward
ActionDispatcher.dispatchMethod
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String name, Method method) Dispatch to the specified method.protected ActionForward
DispatchAction.dispatchMethod
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String name) Dispatch to the specified method.ActionDispatcher.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).DispatchAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).DownloadAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).ForwardAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).IncludeAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).LocaleAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Change the user'sLocale
based onActionForm
properties.LookupDispatchAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).MappingDispatchAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).SwitchAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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
ActionDispatcher.getMethodName
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String parameter) Returns the method name, given a parameter's value.protected String
DispatchAction.getMethodName
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String parameter) Returns the method name, given a parameter's value.protected String
EventActionDispatcher.getMethodName
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String parameter) Returns the method name, given a parameter's value.protected String
EventDispatchAction.getMethodName
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String parameter) Returns the method name, given a parameter's value.protected String
LookupDispatchAction.getMethodName
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String parameter) Returns the method name, given a parameter's value.protected String
MappingDispatchAction.getMethodName
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String parameter) Returns the method name, given a parameter's value.protected String
ActionDispatcher.getParameter
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Returns the parameter value as influenced by the selectedActionDispatcher.flavor
specified for thisActionDispatcher
.protected String
DispatchAction.getParameter
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Returns the parameter value.protected String
MappingDispatchAction.getParameter
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Returns the parameter value.protected abstract DownloadAction.StreamInfo
DownloadAction.getStreamInfo
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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, HttpServletRequest request, HttpServletResponse response) Dispatches to the target class'unspecified
method, if present, otherwise throws a ServletException.protected ActionForward
DispatchAction.unspecified
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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, HttpServletRequest request, HttpServletResponse response) Dispatches to the target class'unspecified
method, if present, otherwise throws a ServletException.protected ActionForward
EventDispatchAction.unspecified
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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, HttpServletRequest request, HttpServletResponse response) Method which is dispatched to when there is no value for the parameter in the ActionMapping. -
Uses of ActionForm in org.apache.struts.extras.validator
Modifier and TypeClassDescriptionclass
This class extends DynaValidatorForm and provides basic field validation based on an XML file.class
This class extends ValidatorForm and provides basic field validation based on an XML file. -
Uses of ActionForm in org.apache.struts.faces.application
Modifier and TypeMethodDescriptionprotected ActionForm
FacesRequestProcessor.processActionForm
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) protected ActionForm
FacesTilesRequestProcessor.processActionForm
(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Modifier and TypeMethodDescriptionprotected ActionForward
FacesRequestProcessor.processActionPerform
(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) protected ActionForward
FacesTilesRequestProcessor.processActionPerform
(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) protected void
FacesRequestProcessor.processPopulate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) Populate the properties of the specifiedActionForm
instance from the request parameters included with this request, IF this is a non-Faces request.protected void
FacesTilesRequestProcessor.processPopulate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) Populate the properties of the specifiedActionForm
instance from the request parameters included with this request, IF this is a non-Faces request.protected boolean
FacesRequestProcessor.processValidate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) protected boolean
FacesTilesRequestProcessor.processValidate
(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) -
Uses of ActionForm in org.apache.struts.scripting
Modifier and TypeMethodDescriptionScriptAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Executes the script.void
StrutsInfo.setForm
(ActionForm form) Sets the action form.ModifierConstructorDescriptionStrutsInfo
(ScriptAction action, ActionMapping mapping, ActionForm form, MessageResources res) Constructor. -
Uses of ActionForm in org.apache.struts.tiles.actions
Modifier and TypeMethodDescriptionDefinitionDispatcherAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.ReloadDefinitionsAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.TilesAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Original Struts Action's method.TilesAction.execute
(ComponentContext context, ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.ViewDefinitionsAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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. -
Uses of ActionForm in org.apache.struts.tiles2.actions
Modifier and TypeMethodDescriptionDefinitionDispatcherAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) 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.TilesAction.execute
(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) Original Struts Action's method.TilesAction.execute
(org.apache.tiles.AttributeContext context, ActionMapping mapping, ActionForm form, HttpServletRequest request, 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. -
Uses of ActionForm in org.apache.struts.util
Modifier and TypeMethodDescriptionstatic ActionForm
RequestUtils.createActionForm
(HttpServletRequest request, ActionMapping mapping, ModuleConfig moduleConfig, ActionServlet servlet) Create (if necessary) and return anActionForm
instance appropriate for this request.static ActionForm
RequestUtils.createActionForm
(FormBeanConfig config, ActionServlet servlet) Create and return anActionForm
instance appropriate to the information inconfig
. -
Uses of ActionForm in org.apache.struts.validator
Modifier and TypeClassDescriptionclass
Struts validatorActionForm
backed by either aDynaBean
or POJO JavaBean.class
This class extends DynaActionForm and provides basic field validation based on an XML file.class
Struts LazyActionForm
which wraps aLazyDynaBean
.class
This class extends ActionForm and provides basic field validation based on an XML file.