Diego Manilla Suárez wrote:
Hi. I have an action in session scope. The problem is that action errors are never cleared and thus are shown repeatedly whenever the user sends the form with validation errors.

At first I put a call to clearErrors() at the beginning of mi validate() method, but now I'm using also the validation framework, so if I do that, I'm clearing its validation errors too before they are even shown.

I think the right place to clear errors would be right after they are printed, but I don't see any tag to do that.

Thanks in advance.

Struts 2 actions are intended to be request scoped, not session scoped. You should re-work your action to store data you wish to persist across requests in the session, rather than storing the action itself in the session.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to