Home > Guides > Core Developers Guide > ActionEventListener

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