public class DynaValidatorActionForm extends DynaValidatorForm implements org.apache.commons.beanutils.DynaBean, Serializable
This class extends DynaValidatorForm 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
dynaClass, dynaValues
multipartRequestHandler, servlet
Constructor and Description |
---|
DynaValidatorActionForm() |
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, setPageFromDynaProperty, setValidatorResults, validate
contains, get, get, get, getDynaClass, getDynaProperty, getMap, getString, getStrings, initialize, initialize, isDynaAssignable, remove, reset, set, set, set, toString
getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate
public String getValidationKey(ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
getValidationKey
in class DynaValidatorForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processingCopyright © 2000–2017 Apache Software Foundation. All rights reserved.