Hi, What I'm trying to do is when exception happen, it redirect to ExceptionHandlingAction and do something extra like sending email. My question are 1) How to get the exception in ExceptionHandlingAction ? I've this setter in the action public void setException(Exception exception), but nothing is set 2) How to get the original request? I want to print out all the request parameters which user submit. 3) If I use result type "chain" I got this error message: Infinite recursion detected: [/exception/exception!execute, /exception/ExceptionHandling, /exception/ExceptionHandling] - [unknown location]
Here is my configuration: <global-results> <result name="errorAction" type="redirectAction">ExceptionHandling</result> <result name="error">/WEB-INF/pages/error/Error.jsp</result> </global-results> <global-exception-mappings> <exception-mapping exception="java.lang.Exception" result="errorAction" /> </global-exception-mappings> <action name="ExceptionHandling" class="demo.action.ExceptionHandlingAction"/> Thanks Louis