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:
- org.apache.commons.chain.Command, ActionCommand
- Direct Known Subclasses:
- ValidateActionForm
public abstract class AbstractValidateActionForm
- extends ActionCommandBase
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: 481833 $ $Date: 2005-06-04 10:58:46 -0400 (Sat, 04 Jun 2005)
$
| Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractValidateActionForm
public AbstractValidateActionForm()
execute
public boolean execute(ActionContext actionCtx)
throws java.lang.Exception
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 interface ActionCommand- Specified by:
execute in class ActionCommandBase
- Parameters:
actionCtx - The Context for the current request
- Returns:
false so that processing continues, if there are
no validation errors; otherwise true
- Throws:
java.lang.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 resulting ActionErrors object.
- Parameters:
context - The context for this requestactionConfig - The ActionConfig for this requestactionForm - The form bean for this request
- Returns:
- ActionErrors object, if any
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.