Class ValidatorActionForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.apache.struts.extras.validator.ValidatorActionForm
- All Implemented Interfaces:
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:
-
Field Summary
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResults
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValidationKey
(ActionMapping mapping, HttpServletRequest request) Returns the Validation key.Methods inherited from class org.apache.struts.validator.ValidatorForm
determinePage, getPage, getResultValueMap, getValidatorResults, reset, setPage, setValidatorResults, validate
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
-
Constructor Details
-
ValidatorActionForm
public ValidatorActionForm()
-
-
Method Details
-
getValidationKey
Returns the Validation key.- Overrides:
getValidationKey
in classValidatorForm
- Parameters:
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing- Returns:
- validation key - the action element's 'path' attribute in this case
-