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.
ValidatorPlugin definition in struts-config.xml for
validation rules.page, validatorResultsmultipartRequestHandler, servlet| Constructor and Description |
|---|
ValidatorActionForm() |
| Modifier and Type | Method and Description |
|---|---|
String |
getValidationKey(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Returns the Validation key.
|
determinePage, getPage, getResultValueMap, getValidatorResults, reset, setPage, setValidatorResults, validategetMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validatepublic String getValidationKey(ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
getValidationKey in class ValidatorFormmapping - The mapping used to select this instancerequest - The servlet request we are processingCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.