org.apache.struts.validator
Class DynaValidatorActionForm
- DynaBean, Serializable
public class DynaValidatorActionForm
implements 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.
- See
ValidatorPlugin
definition in struts-config.xml
for validation rules.
Version:
- David Winterfeldt
- Struts 1.1
private static Log | log - Commons Logging instance.
|
ActionErrors | validate(ActionMapping mapping, HttpServletRequest request) - Validate the properties that have been set from this HTTP request,
and return an
ActionErrors object that encapsulates any
validation errors that have been found.
|
contains , get , get , get , getDynaClass , getDynaProperty , getMap , initialize , isDynaAssignable , remove , reset , reset , set , set , set , setDynaActionFormClass , toString |
log
private static Log log
Commons Logging instance.
validate
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
Validate the properties that have been set from this HTTP request,
and return an ActionErrors
object that encapsulates any
validation errors that have been found. If no errors are found, return
null
or an ActionErrors
object with no
recorded error messages.
- validate in interface DynaValidatorForm
mapping
- The mapping used to select this instance.request
- The servlet request we are processing.
- ActionErrors containing validation errors.
Copyright B) 2000-2005 - Apache Software Foundation