Home > Guides > Core Developers Guide > ActionEventListener |

Apache Struts 2 Documentation
ActionEventListener
Edit Page Browse Space Add Page Add News

A ActionEventListener can be used to add some logic when action's instance is created or when exception occurred during processing the action.

### Configuration

Right now there can be only one instance of ActionEventListener for the whole Struts2 application. You can configure it via struts.xml by adding bean definition:

### Examples