org.apache.struts.validator
Class DynaValidatorActionForm
java.lang.Object
|
+--org.apache.struts.action.ActionForm
|
+--org.apache.struts.action.DynaActionForm
|
+--org.apache.struts.validator.DynaValidatorForm
|
+--org.apache.struts.validator.DynaValidatorActionForm
- All Implemented Interfaces:
- org.apache.commons.beanutils.DynaBean, java.io.Serializable
- public class DynaValidatorActionForm
- extends DynaValidatorForm
- implements org.apache.commons.beanutils.DynaBean, java.io.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.
- Since:
- Struts 1.1
- Version:
- $Revision: 1.8 $ $Date: 2003/03/05 02:53:15 $
- Author:
- David Winterfeldt
- See Also:
- Serialized Form
Field Summary |
private static org.apache.commons.logging.Log |
log
Commons Logging instance. |
Method Summary |
ActionErrors |
validate(ActionMapping mapping,
javax.servlet.http.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. |
Methods inherited from class org.apache.struts.action.DynaActionForm |
contains, get, get, get, getDynaClass, getDynaProperty, getMap, initialize, isDynaAssignable, remove, reset, set, set, set, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.commons.beanutils.DynaBean |
contains, get, get, get, getDynaClass, remove, set, set, set |
log
private static org.apache.commons.logging.Log log
- Commons Logging instance.
DynaValidatorActionForm
public DynaValidatorActionForm()
validate
public ActionErrors validate(ActionMapping mapping,
javax.servlet.http.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.
- Overrides:
validate
in class DynaValidatorForm
- Parameters:
mapping
- The mapping used to select this instance.request
- The servlet request we are processing.
- Returns:
- ActionErrors containing validation errors.
Copyright © 2000-2003 - Apache Software Foundation