|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.action.ActionForm | +--org.apache.struts.action.DynaActionForm | +--org.apache.struts.validator.DynaValidatorForm | +--org.apache.struts.validator.DynaValidatorActionForm
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.
Fields inherited from class org.apache.struts.validator.DynaValidatorForm |
log, page, validatorResults |
Fields inherited from class org.apache.struts.action.DynaActionForm |
dynaClass, dynaValues |
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Constructor Summary | |
DynaValidatorActionForm()
|
Method Summary | |
java.lang.String |
getValidationKey(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Returns the Validation key. |
Methods inherited from class org.apache.struts.validator.DynaValidatorForm |
getPage, getResultValueMap, getValidatorResults, reset, setPage, setPageFromDynaProperty, setValidatorResults, validate |
Methods inherited from class org.apache.struts.action.DynaActionForm |
contains, get, get, get, getDynaClass, getDynaProperty, getMap, getString, getStrings, initialize, initialize, isDynaAssignable, remove, reset, set, set, set, setDynaActionFormClass, toString |
Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface org.apache.commons.beanutils.DynaBean |
contains, get, get, get, getDynaClass, remove, set, set, set |
Constructor Detail |
public DynaValidatorActionForm()
Method Detail |
public java.lang.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 processing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |