Class ValidatorActionForm

All Implemented Interfaces:
Serializable

public class ValidatorActionForm extends ValidatorForm implements Serializable

This class extends ValidatorForm and provides basic field validation based on an XML file. The key passed into the validator is the action element's 'path' attribute from the struts-config.xml which should match the form element's name attribute in the validation.xml.

  • See ValidatorPlugin definition in struts-config.xml for validation rules.
Since:
Struts 1.1
Version:
$Rev$ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005) $
See Also:
  • Constructor Details

    • ValidatorActionForm

      public ValidatorActionForm()
  • Method Details

    • getValidationKey

      public String getValidationKey(ActionMapping mapping, HttpServletRequest request)
      Returns the Validation key.
      Overrides:
      getValidationKey in class ValidatorForm
      Parameters:
      mapping - The mapping used to select this instance
      request - The servlet request we are processing
      Returns:
      validation key - the action element's 'path' attribute in this case