Home » Struts-1.3.10 » org.apache.struts » chain » [javadoc | source]
org.apache.struts.chain
abstract public class: AbstractValidateActionForm [javadoc | source]
java.lang.Object
   org.apache.struts.chain.AbstractValidateActionForm

All Implemented Interfaces:
    org.apache.commons.chain.Command

Direct Known Subclasses:
    ValidateActionForm

Validate the properties of the form bean for this request. If there are any validation errors, execute the specified command; otherwise, proceed normally.

Method from org.apache.struts.chain.AbstractValidateActionForm Summary:
execute,   getActionConfigKey,   getActionFormKey,   getCancelKey,   getValidKey,   setActionConfigKey,   setActionFormKey,   setCancelKey,   setValidKey,   validate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.chain.AbstractValidateActionForm Detail:
 public boolean execute(Context context) 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.

 public String getActionConfigKey() 

    Return the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public String getActionFormKey() 

    Return the context attribute key under which the ActionForm for the currently selected application action is stored.

 public String getCancelKey() 

    Return the context attribute key under which the cancellation flag for this request is stored.

 public String getValidKey() 

    Return the context attribute key under which the validity flag for this request is stored.

 public  void setActionConfigKey(String actionConfigKey) 

    Set the context attribute key under which the ActionConfig for the currently selected application action is stored.

 public  void setActionFormKey(String actionFormKey) 

    Set the context attribute key under which the ActionForm for the currently selected application action is stored.

 public  void setCancelKey(String cancelKey) 

    Set the context attribute key under which the cancellation flag for this request is stored.

 public  void setValidKey(String validKey) 

    Set the context attribute key under which the validity flag for this request is stored.

 abstract protected ActionErrors validate(Context context,
    ActionConfig actionConfig,
    ActionForm actionForm)

    Call the validate() method of the specified form bean, and return the resulting ActionErrors object.