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.
| Constructor and Description |
|---|
AbstractValidateActionForm() |
| Modifier and Type | Method and Description |
|---|---|
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 the
validate() method of the specified form bean,
and return the resulting ActionErrors object. |
executepublic boolean execute(ActionContext actionCtx) throws 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.
execute in interface ActionCommandexecute in class ActionCommandBaseactionCtx - The Context for the current requestfalse so that processing continues, if there are
no validation errors; otherwise trueException - if thrown by the Action classprotected abstract ActionErrors validate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm)
Call the validate() method of the specified form bean,
and return the resulting ActionErrors object.
context - The context for this requestactionConfig - The ActionConfig for this requestactionForm - The form bean for this requestCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.