org.apache.struts.chain.commands.servlet
Class ValidateActionForm

java.lang.Object
  extended by org.apache.struts.chain.commands.ActionCommandBase
      extended by org.apache.struts.chain.commands.AbstractValidateActionForm
          extended by 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) $

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
ValidateActionForm()
           
 
Method Summary
protected  ActionErrors validate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm)
          Call the validate() method of the specified form bean, and return the resulting ActionErrors object.
 
Methods inherited from class org.apache.struts.chain.commands.AbstractValidateActionForm
execute
 
Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidateActionForm

public ValidateActionForm()
Method Detail

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 request
actionForm - The form bean for this request
actionConfig - The ActionConfig for this request
Returns:
ActionErrors object, if any


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.