Class AbstractValidateActionForm

java.lang.Object
org.apache.struts.chain.commands.ActionCommandBase
org.apache.struts.chain.commands.AbstractValidateActionForm
All Implemented Interfaces:
Command<ActionContext>, ActionCommand
Direct Known Subclasses:
ValidateActionForm

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.

Version:
$Rev$ $Date: 2005-06-04 10:58:46 -0400 (Sat, 04 Jun 2005) $
  • Constructor Details

    • AbstractValidateActionForm

      public AbstractValidateActionForm()
  • Method Details

    • execute_

      protected 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.

      Specified by:
      execute_ in class ActionCommandBase
      Parameters:
      actionCtx - The Context for the current request
      Returns:
      false so that processing continues, if there are no validation errors; otherwise true
      Throws:
      Exception - if thrown by the Action class
    • validate

      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.

      Parameters:
      context - The context for this request
      actionConfig - The ActionConfig for this request
      actionForm - The form bean for this request
      Returns:
      ActionErrors object, if any