struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: Struts2 form validation gets indefinite loops in web browsers
Date Thu, 17 Sep 2009 20:08:59 GMT
Jipu Jiang wrote:
> So if user input something wrong, I want to show the original form.jsp
> page with all the parameters extracted from the database along with
> error messages. So I need to go to the prepareAction first to gets these
> parameters, and then display them in form.jsp page.

So make sure your prepare interceptor is before your validate 
interceptor, then forward (not redirect) to the input jsp.

-Dale

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


Mime
View raw message