org.apache.struts.chain.servlet
Class ValidateActionForm

java.lang.Object
  extended byorg.apache.struts.chain.AbstractValidateActionForm
      extended byorg.apache.struts.chain.servlet.ValidateActionForm
All Implemented Interfaces:
org.apache.commons.chain.Command

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: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $
Author:
Craig R. McClanahan, Don Brown

Field Summary
private static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.struts.chain.AbstractValidateActionForm
 
Constructor Summary
ValidateActionForm()
           
 
Method Summary
protected  org.apache.struts.action.ActionErrors validate(org.apache.commons.chain.Context context, org.apache.struts.config.ActionConfig actionConfig, org.apache.struts.action.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.AbstractValidateActionForm
execute, getActionConfigKey, getActionFormKey, getCancelKey, getValidKey, setActionConfigKey, setActionFormKey, setCancelKey, setValidKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
Constructor Detail

ValidateActionForm

public ValidateActionForm()
Method Detail

validate

protected org.apache.struts.action.ActionErrors validate(org.apache.commons.chain.Context context,
                                                         org.apache.struts.config.ActionConfig actionConfig,
                                                         org.apache.struts.action.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


Copyright ? 2003 - Apache Software Foundation