org.apache.struts.validator
Class ValidatorActionForm
- Serializable
public class ValidatorActionForm
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.
- 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.
|
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 ValidatorForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
ActionErrors
object that encapsulates any validation errors
Copyright B) 2000-2005 - Apache Software Foundation