On Mon, 13 Dec 2004 10:44:24 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -----Original Message----- > > From: Vinicius Caldeira Carvalho > > [mailto:[EMAIL PROTECTED] > > Sent: Monday, December 13, 2004 11:32 AM > > To: Struts Users Mailing List > > Subject: Validator question > > > > > > Hi there. Correct if I'm wrong, validator returns to the > > input jsp after > > a validation fails right? > > Now if my jsp was called by an action that receives > > parameters throught > > the request, how can I handle this? > > This is a problem with how validation works with struts. The list history > has quite a few discussions on this. My typical solution is to put the form > bean into session scope, rather then request scope. >
Or, include the parameters in your JSP as hidden fields. They will be passed to the form bean again after submitting the form page, and therefore will be available after validation fails. > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]