Uses of Class
org.apache.struts.action.ActionForm
Packages that use 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
Subclasses of ActionForm in org.apache.struts.actionModifier and TypeClassDescriptionclassSpecialized subclass ofActionFormthat 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.Methods in org.apache.struts.action that return ActionFormModifier and TypeMethodDescriptionprotected ActionFormRequestProcessor.processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) Retrieve and return theActionFormassociated with this mapping, creating and retaining one if necessary.Methods in org.apache.struts.action with parameters of type ActionFormModifier 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 voidExceptionHandler.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 ActionForwardRequestProcessor.processActionPerform(HttpServletRequest request, HttpServletResponse response, Action action, ActionForm form, ActionMapping mapping) Ask the specifiedActioninstance to handle this request.protected ActionForwardRequestProcessor.processException(HttpServletRequest request, HttpServletResponse response, Exception exception, ActionForm form, ActionMapping mapping) Ask our exception handler to handle the exception.protected voidRequestProcessor.processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) Populate the properties of the specifiedActionForminstance from the request parameters included with this request.protected booleanRequestProcessor.processValidate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) If this request was not cancelled, and the request'sActionMappinghas not disabled validation, call thevalidatemethod of the specifiedActionForm, and forward to the input path if there were any errors. -
Uses of ActionForm in org.apache.struts.chain.commands
Methods in org.apache.struts.chain.commands with parameters of type ActionFormModifier and TypeMethodDescriptionprotected abstract ForwardConfigAbstractExecuteAction.execute(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction, and return the resultingForwardConfig.protected voidAbstractPopulateActionForm.handleCancel(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Take into account whether the request includes any defined value for the global "cancel" parameter.protected abstract voidAbstractPopulateActionForm.populate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Populate the givenActionFormwith request parameter values, taking into account any prefix/suffix values configured on the givenActionConfig.protected abstract voidAbstractPopulateActionForm.reset(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thereset()method on the specified form bean.protected abstract ActionErrorsAbstractValidateActionForm.validate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thevalidate()method of the specified form bean, and return the resultingActionErrorsobject. -
Uses of ActionForm in org.apache.struts.chain.commands.generic
Methods in org.apache.struts.chain.commands.generic that return ActionFormModifier and TypeMethodDescriptionprotected ActionFormCopyFormToContext.findOrCreateForm(ActionContext context) Based on the properties of this command and the givenActionContext, find or create anActionForminstance for preparation.protected ActionFormCopyFormToContext.findOrCreateForm(ActionContext ctx, String effectiveFormName, String effectiveScope) Actually find or create an instance ofActionFormconfigured under the form-bean-nameeffectiveFormName, looking in in theActionContext'sscope as identified byeffectiveScope. -
Uses of ActionForm in org.apache.struts.chain.commands.servlet
Methods in org.apache.struts.chain.commands.servlet with parameters of type ActionFormModifier and TypeMethodDescriptionprotected ForwardConfigExecuteAction.execute(ActionContext context, Action action, ActionConfig actionConfig, ActionForm actionForm) Execute the specifiedAction, and return the resultingActionForward.protected voidPopulateActionForm.populate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) protected voidPopulateActionForm.reset(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) protected ActionErrorsValidateActionForm.validate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thevalidate()method of the specified form bean, and return the resultingActionErrorsobject. -
Uses of ActionForm in org.apache.struts.chain.contexts
Methods in org.apache.struts.chain.contexts that return ActionFormModifier and TypeMethodDescriptionActionContextBase.findOrCreateActionForm(String formName, String scopeName) Using thisActionContext's defaultModuleConfig, return an existingActionFormin 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 givenModuleConfigand thisActionContext, look for an existingActionFormin the specified scope.ActionContext.getActionForm()Get the ActionForm instance which will carry any data submitted as part of this request.ActionContextBase.getActionForm()Methods in org.apache.struts.chain.contexts with parameters of type ActionFormModifier and TypeMethodDescriptionvoidActionContext.setActionForm(ActionForm form) Set the ActionForm instance which will carry any data submitted as part of this request.voidActionContextBase.setActionForm(ActionForm form) -
Uses of ActionForm in org.apache.struts.config
Methods in org.apache.struts.config that return ActionFormModifier and TypeMethodDescriptionFormBeanConfig.createActionForm(ActionServlet servlet) Create and return anActionForminstance appropriate to the information in thisFormBeanConfig.FormBeanConfig.createActionForm(ActionContext context) Create and return anActionForminstance appropriate to the information in thisFormBeanConfig.ConfigHelper.getActionForm()ConfigHelperInterface.getActionForm()Retrieve and return theActionFormbean associated with this mapping, creating and stashing one if necessary.Methods in org.apache.struts.config with parameters of type ActionFormModifier and TypeMethodDescriptionbooleanFormBeanConfig.canReuse(ActionForm form) Checks if the givenActionForminstance is suitable for use as an alternative to calling thisFormBeanConfiginstance'screateActionFormmethod. -
Uses of ActionForm in org.apache.struts.util
Methods in org.apache.struts.util that return ActionFormModifier and TypeMethodDescriptionstatic ActionFormRequestUtils.createActionForm(HttpServletRequest request, ActionMapping mapping, ModuleConfig moduleConfig, ActionServlet servlet) Create (if necessary) and return anActionForminstance appropriate for this request.static ActionFormRequestUtils.createActionForm(FormBeanConfig config, ActionServlet servlet) Create and return anActionForminstance appropriate to the information inconfig. -
Uses of ActionForm in org.apache.struts.validator
Subclasses of ActionForm in org.apache.struts.validatorModifier and TypeClassDescriptionclassStruts validatorActionFormbacked by either aDynaBeanor POJO JavaBean.classThis class extends DynaActionForm and provides basic field validation based on an XML file.classStruts LazyActionFormwhich wraps aLazyDynaBean.classThis class extends ActionForm and provides basic field validation based on an XML file.