Larry, Thanks for your prompt reply :) I tried to implement your suggestion using the reset() method in the form bean which works, but ONLY when the form element is not trying to get the properties from a bean on the page.
For instance if I'm presenting a form the user may be changing existing info or entering info for the first time. 1) If the user is updating - the form defaults to their old info on all of the fields if even one is erroneous. 2) If the user is entering information for the first time the data gets erased completely - even if the form bean is in scope because the form elements are reading the empty fields of the bean. To solve the second problem I could output different form fields based on whether the user is updating or adding. However, this will not solve my first problem. Any additional thoughts? Thanks in advance, mturner "Maturo, Larry" <[EMAIL PROTECTED]> wrote: >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]> > > __________________________________________________________________ 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]>