You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Manjunath Bhat <mb...@firstam.com> on 2004/01/29 06:34:04 UTC

redirect=true & ActionErrors

The errors that I populated in ActionErrors in my action classes are not
displayed in page if I use redirect="true". I am using redirect="true"
to handle user clicking refresh button.

If I use redirect="false" the ActionErrors are displayed. But I don't
want to use redirect="false". Is there any work around for this problem?

TIA

Majnunath


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


Re: redirect=true & ActionErrors

Posted by Hubert Rabago <ja...@yahoo.com>.
There's no built-in support for this in the current version of Struts.
I'm currently working on a patch which would support this
(http://issues.apache.org/bugzilla/show_bug.cgi?id=866), but of course there's no
guarantee that the patch (or something like it) will make it to a struts release.

In the meantime, you may want to look into using struts' transaction tokens to
allow you to detect double submissions when the user clicks refresh.

If you're aching for this enhancement for your app, let me know and I'll send you
some Struts subclasses that you can incorporate in your current project.

(It's 2 AM my time, though, so I may not get back to you right away.)

- Hubert

--- Manjunath Bhat <mb...@firstam.com> wrote:
> The errors that I populated in ActionErrors in my action classes are not
> displayed in page if I use redirect="true". I am using redirect="true"
> to handle user clicking refresh button.
> 
> If I use redirect="false" the ActionErrors are displayed. But I don't
> want to use redirect="false". Is there any work around for this problem?
> 
> TIA
> 
> Majnunath
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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