org.apache.struts.validator
Class ValidatorActionForm
- Serializable
public class ValidatorActionForm
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.
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
getValidationKey
public String getValidationKey(ActionMapping mapping,
HttpServletRequest request)
Returns the Validation key.
- getValidationKey in interface ValidatorForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
- validation key - the action element's 'path' attribute in this case
Copyright B) 2000-2007 - The Apache Software Foundation