Re: how to get exception stack after redirect to action

2009-08-26 Thread Greg Lindholm
: > I tried this > > > > In the action, I receive the exception but not the request, request is > null, why? > > -Louis > > > > > From: Greg Lindholm > To: Struts Users Mailing List > Sent: Tuesday, August 25, 2009 6:21

Re: how to get exception stack after redirect to action

2009-08-26 Thread mailtolouis2020-struts
I tried this In the action, I receive the exception but not the request, request is null, why? -Louis From: Greg Lindholm To: Struts Users Mailing List Sent: Tuesday, August 25, 2009 6:21:00 PM Subject: Re: how to get exception stack after redirect to

Re: how to get exception stack after redirect to action

2009-08-26 Thread mailtolouis2020-struts
Thanks, I'll try your solution. Regards Louis From: Greg Lindholm To: Struts Users Mailing List Sent: Tuesday, August 25, 2009 6:21:00 PM Subject: Re: how to get exception stack after redirect to action The exception will not persist across the red

Re: how to get exception stack after redirect to action

2009-08-26 Thread mailtolouis2020-struts
: Struts Users Mailing List Sent: Tuesday, August 25, 2009 6:14:43 PM Subject: Re: how to get exception stack after redirect to action The core problem here is that you are redirecting... A redirect generates a whole new request and all of your previous context is lost. I would say find a different

Re: how to get exception stack after redirect to action

2009-08-25 Thread Greg Lindholm
The exception will not persist across the redirect unless you were to save it in the session. If you want to do this then you could take a look at [1] RedirectMessageInterceptor for an example of how to saveand retrieve the exception in the session. However, what I do to handle exceptions is have

Re: how to get exception stack after redirect to action

2009-08-25 Thread Wes Wannemacher
The core problem here is that you are redirecting... A redirect generates a whole new request and all of your previous context is lost. I would say find a different way to pass the exception around, but keep in mind that you can run into exception bubbling problems (such as your exception mapping t