Dave Newton on 26/01/09 21:21, wrote:
Andy wrote:
 > it appears that the Exception interceptor will fire after
 > the Result has completed, which would theoretically catch
 > any exceptions thrown by the JSP.

It's not that it fires "after" the result is completed, it's that everything happens *within* the interceptors: they're wrapped around the result (that's why there are PreResultListeners, in fact).


Good point Dave. I always forget to check if there's already an interceptor to do what I need in S2 - and generally, there is, or if not, it's easy to extend the interceptor to add what you need.

So I have to eat my words in answer to your first question because yes, struts2 will handle it. I assume that you can configure the Exception interceptor to pick up particular JspExceptions and send the flow of control to your desired result. The online docs should sort you out there.

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

Reply via email to