Our Struts2 application has java.lang.Exception mapped to a global
result called 'error'.  Our 'error' global result is setup as a CHAIN
type to send the user to our ExceptionHandlerAction.  This action is
designed to capture the exception, log it, email it to an administration
mailbox and then forward the user to our error.jsp page.

When ExceptionHandlerAction is invoked, I need to be able to find out
what the original request URI was so that it can be included in the log
and notification.  Is there a way to get the chain history and get the
first action invoked?  If so, could someone explain it to me?

I had originally set our base action to implement ServletRequestAware
and set the HttpServletRequest object, but unfortunately I was getting
NullPointerExceptions with findStaticResource() method.  

Thoughts?
Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to