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, validatorResults
multipartRequestHandler, 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, validate
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
public String getValidationKey(ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
getValidationKey
in class ValidatorForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processingCopyright © 2000–2017 Apache Software Foundation. All rights reserved.