Package org.apache.struts2
Interface ActionEventListener
public interface ActionEventListener
Provides hooks for handling key action events
-
Method Summary
Modifier and TypeMethodDescriptionhandleException
(Throwable t, ValueStack stack) Called when an exception is thrown by the actionprepare
(Object action, ValueStack stack) Called after an action has been created.
-
Method Details
-
prepare
Called after an action has been created.- Parameters:
action
- The actionstack
- The current value stack- Returns:
- The action to use
-
handleException
Called when an exception is thrown by the action- Parameters:
t
- The exception/error that was thrownstack
- The current value stack- Returns:
- A result code to execute, can be null
-