You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by riffla <ri...@hotmail.com> on 2007/03/22 10:27:25 UTC

Resetting ActionErrors and javascript

Hi

Situation is this:

Have a jsp with html:form... user inputs data and tries to submit, but on
validation errors user is redirected to same page and with those html:errors
shown in red. The user corrects the errors and tries to submit again,
provided there is no errors the user is forwarded to another jsp page - a
sort of confirming page - before final submit to DB. 
But if the user, after having entered the last confirm page, hits [Back]
button (javascript: history.back(-1) the user is of course "sent back in
time" to previous page, and is viewing a page with no textual erros on, but
with those red ActionError messages... 
And by the way, the validated forms action is a JSP page... know I maybe
should go through another struts action, but this is how it was implemented
when I got into this

So, now I wonder if someone's got an idea how to "not" show those
ActionError messages on a history.back(-1)

Note: Have a feeling that this is hard to achieve since the Back button
sends user back to the static html page generated by the jsp/server side,
or... ????


I know the
-- 
View this message in context: http://www.nabble.com/Resetting-ActionErrors-and-javascript-tf3446383.html#a9611004
Sent from the Struts - Dev mailing list archive at Nabble.com.


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