Hi Everyone,
I am having troubles :-(. I have followed the PRG (post, redirect, get)
pattern for my application which works wonderfully. My problem is that the actionerrors that are saved in my action (with saveerrors) are lost when the redirect executes. I understand why this happens (because they are stored in the request, not the session). What I need to know is, what is the best way to work around this problem? I have read a few different ways to work this out such as:
- subclassing Action and overriding the saveErrors method like this:
- saving the errors in the session then reading the from the session in the validate method of the error form that I redirect to.
I'm sure this isnt a new problem and wondering what is the best practice out there and could really use some help.
Thanks guru's.
Yeuker