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 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.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.