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.chain.commands
Class AbstractValidateActionForm

    java.lang.Object
      org.apache.struts.chain.commands.ActionCommandBase
          org.apache.struts.chain.commands.AbstractValidateActionForm

All Implemented Interfaces:
  org.apache.commons.chain.Command, ActionCommand

Direct Known Subclasses:
  ValidateActionForm

    public abstract class AbstractValidateActionForm

extends ActionCommandBase

Validate the properties of the form bean for this request. If there are any validation errors, execute the specified command; otherwise, proceed normally.

Version:
  $Rev: 481833 $ $Date: 2005-06-04 10:58:46 -0400 (Sat, 04 Jun 2005) $

Field Summary

Fields inherited from interface org.apache.commons.chain.Command
`CONTINUE_PROCESSING, PROCESSING_COMPLETE`

Constructor Summary
`AbstractValidateActionForm()`

Method Summary
`boolean` | `execute(ActionContext actionCtx)` Validate the properties of the form bean for this request.
`protected abstract ActionErrors` | `validate(ActionContext context, ActionConfig actionConfig, ActionForm actionForm)` Call the `validate()` method of the specified form bean, and return the resulting `ActionErrors` object.

Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
`execute`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AbstractValidateActionForm

    public AbstractValidateActionForm()

Method Detail

### execute

    public boolean execute(ActionContext actionCtx)
                    throws Exception

  Validate the properties of the form bean for this request. If there are any validation errors, execute the child commands in our chain; otherwise, proceed normally.

  Specified by:
    `execute` in interface `ActionCommand`
  Specified by:
    `execute` in class `ActionCommandBase`
  Parameters:
    `actionCtx` - The `Context` for the current request
  Returns:
    `false` so that processing continues, if there are no validation errors; otherwise `true`
  Throws:
    `Exception` - if thrown by the Action class

### validate

    protected abstract ActionErrors validate(ActionContext context,
                                             ActionConfig actionConfig,
                                             ActionForm actionForm)

  Call the `validate()` method of the specified form bean, and return the resulting `ActionErrors` object.

  Parameters:
    `context` - The context for this request
    `actionConfig` - The `ActionConfig` for this request
    `actionForm` - The form bean for this request
  Returns:
    ActionErrors object, if any

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-2008 Apache Software Foundation. All Rights Reserved.