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

## com.opensymphony.xwork2
Interface ActionEventListener

    public interface ActionEventListener

Provides hooks for handling key action events

Method Summary
`java.lang.String` | `handleException(java.lang.Throwable t, ValueStack stack)` Called when an exception is thrown by the action
`java.lang.Object` | `prepare(java.lang.Object action, ValueStack stack)` Called after an action has been created.

Method Detail

### prepare

    java.lang.Object prepare(java.lang.Object action,
                             ValueStack stack)

  Called after an action has been created.

  Parameters:
    `action` - The action
    `stack` - The current value stack
  Returns:
    The action to use

### handleException

    java.lang.String handleException(java.lang.Throwable t,
                                     ValueStack stack)

  Called when an exception is thrown by the action

  Parameters:
    `t` - The exception/error that was thrown
    `stack` - The current value stack
  Returns:
    A result code to execute, can be null

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