Class ValidateActionForm
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractValidateActionForm
org.apache.struts.chain.commands.servlet.ValidateActionForm
- All Implemented Interfaces:
org.apache.commons.chain.Command<ActionContext>,ActionCommand
Validate the properties of the form bean for this request. If there are
any validation errors, execute the child commands in our chain; otherwise,
proceed normally. Also, if any errors are found and the request is a
multipart request, rollback the MultipartRequestHandler.
- Version:
- $Rev$ $Date: 2005-06-04 10:58:46 -0400 (Sat, 04 Jun 2005) $
-
Field Summary
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ActionErrorsvalidate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thevalidate()method of the specified form bean, and return the resultingActionErrorsobject.Methods inherited from class org.apache.struts.chain.commands.AbstractValidateActionForm
execute_Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
ValidateActionForm
public ValidateActionForm()
-
-
Method Details
-
validate
protected ActionErrors validate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call the
validate()method of the specified form bean, and return the resultingActionErrorsobject.- Specified by:
validatein classAbstractValidateActionForm- Parameters:
context- The context for this requestactionConfig- TheActionConfigfor this requestactionForm- The form bean for this request- Returns:
- ActionErrors object, if any
-