Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.1 $ $Date: 2003/08/22 08:43:30 $
Author:
  David Winterfeldt
See Also:
  Serialized Form

Field Summary
`private static org.apache.commons.logging.Log` | `log` Commons Logging instance.

Fields inherited from class org.apache.struts.validator.DynaValidatorForm
`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
`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.validator.DynaValidatorForm
`getPage, getResultValueMap, getValidatorResults, log, log, reset, setPage, setValidatorResults`

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 org.apache.struts.action.ActionForm
`getMultipartRequestHandler, getServlet, getServletWrapper, setMultipartRequestHandler, setServlet, validate`

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`

Field Detail

### log

    private static org.apache.commons.logging.Log log

  Commons Logging instance.

Constructor Detail

### DynaValidatorActionForm

    public DynaValidatorActionForm()

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2003 - Apache Software Foundation