org.apache.struts.validator

Class ValidatorActionForm

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.
Version:
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
Since:
Struts 1.1

Field Summary

Fields inherited from class org.apache.struts.validator.ValidatorForm

log, page, validatorResults

Fields inherited from class org.apache.struts.action.ActionForm

multipartRequestHandler, servlet

Method Summary

String
getValidationKey(ActionMapping mapping, HttpServletRequest request)
Returns the Validation key.

Methods inherited from class org.apache.struts.validator.ValidatorForm

getPage, getResultValueMap, getValidationKey, getValidatorResults, reset, setPage, setValidatorResults, validate

Methods inherited from class org.apache.struts.action.ActionForm

getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate

Method Details

getValidationKey

public String getValidationKey(ActionMapping mapping,
                               HttpServletRequest request)
Returns the Validation key.
Overrides:
getValidationKey in interface 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

Copyright B) 2000-2007 - The Apache Software Foundation