org.apache.struts.chain.commands.servlet
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, ActionCommand
public class ValidateActionForm
- extends AbstractValidateActionForm
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: 471754 $ $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 |
ValidateActionForm
public ValidateActionForm()
validate
protected ActionErrors validate(ActionContext context,
ActionConfig actionConfig,
ActionForm actionForm)
Call the validate()
method of the specified form bean,
and return the resulting ActionErrors
object.
- Specified by:
validate
in class AbstractValidateActionForm
- Parameters:
context
- The context for this requestactionForm
- The form bean for this requestactionConfig
- The ActionConfig
for this request
- Returns:
- ActionErrors object, if any
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.