Package org.apache.struts.chain.commands
Class AbstractValidateActionForm
java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractValidateActionForm
- All Implemented Interfaces:
Command<ActionContext>
,ActionCommand
- Direct Known Subclasses:
ValidateActionForm
Validate the properties of the form bean for this request. If there are any validation errors, execute the specified command; otherwise, proceed normally.
- 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
execute_
(ActionContext actionCtx) Validate the properties of the form bean for this request.protected abstract ActionErrors
validate
(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call thevalidate()
method of the specified form bean, and return the resultingActionErrors
object.Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
-
Constructor Details
-
AbstractValidateActionForm
public AbstractValidateActionForm()
-
-
Method Details
-
execute_
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.
- Specified by:
execute_
in classActionCommandBase
- Parameters:
actionCtx
- TheContext
for the current request- Returns:
false
so that processing continues, if there are no validation errors; otherwisetrue
- Throws:
Exception
- if thrown by the Action class
-
validate
protected abstract ActionErrors validate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm) Call the
validate()
method of the specified form bean, and return the resultingActionErrors
object.- Parameters:
context
- The context for this requestactionConfig
- TheActionConfig
for this requestactionForm
- The form bean for this request- Returns:
- ActionErrors object, if any
-