Re: [Stripes-users] exception handler class

2013-04-02 Thread Chris Cheshire
Thanks Remi, I'll combine them both then. At least with the Stripes exception handling I get to fire off internal emails about the issue. On Tue, Apr 2, 2013 at 11:43 AM, Remi VANKEISBELCK wrote: > Note that when using request.getDispatcher() it's boiling down to the > container "crapping out"

Re: [Stripes-users] exception handler class

2013-04-02 Thread Remi VANKEISBELCK
Note that when using request.getDispatcher() it's boiling down to the container "crapping out" :P Could happen e.g. if you try to dispatch to a non existing resource or stuff like that. If you wanna avoid this entirely then wrap everything in a try/catch in your Stripes exception handler. Then

Re: [Stripes-users] exception handler class

2013-04-02 Thread Chris Cheshire
So if I want to hide the stack trace output entirely, I still need a handler defined by ... in web.xml just in case the Stripes exception handling mechanism craps out then? On Tue, Apr 2, 2013 at 4:24 AM, Remi VANKEISBELCK wrote: > Hi Chris, > > It only declares IOException and ServletExceptio

Re: [Stripes-users] exception handler class

2013-04-02 Thread Remi VANKEISBELCK
Hi Chris, It only declares IOException and ServletException because the handler itself may fail (e.g. call to request.getDispatcher()), or so that, in case you want to, you can re-throw an exception that matches the servlet spec, and then let the container handle it. HTH Remi Le 2 avr. 2013

[Stripes-users] exception handler class

2013-04-01 Thread Chris Cheshire
I'm a little confused at the unhandled exception handling mechanism. The documentation gives an example on how to get implement a handler for it (http://www.stripesframework.org/display/stripes/Exception+Handling) and I am looking at the bottom example which gives access to the action bean that tr