Class ValidateActionForm

All Implemented Interfaces:
org.apache.commons.chain.Command<ActionContext>, 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$ $Date: 2005-06-04 10:58:46 -0400 (Sat, 04 Jun 2005) $
  • Constructor Details

    • ValidateActionForm

      public ValidateActionForm()
  • Method Details

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