Hi,

What we do is put the form beans in the session, but each
one has a clear method we call before filling in data on
the form.  This keeps the data from being lost, and also
keeps it from showing up when not wanted.  The clear just
sets the member variables in the form bean back to nothing.

-- Larry Maturo
   [EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:04 AM
To: "Struts Users Mailing List"
Subject: Re: lost form data when validate returns errors


Dan, 

I am having the exact same problem!  In my struts-config.xml I have my
formBeans set to "request" scope, so I suspect that this causes the
information in my form to disappear.  I don't want to have the bean persist
for the whole session because users will be coming back to this page.  Have
you solved this problem already?

Thanks, 
mturner

> I'm having the problem of losing form data when my action class returns 
> errors.  The error displays properly, but I lose all the form data.

> Looking at older posts, I've seen the same problem, but haven't seen a 
> fix or workaround yet.  I've included the relevant code snippets.




__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


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


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

Reply via email to