Hmm. It does seem a bit counterintuitive. Ill post this reply back to the list as well to see if anyone else has an idea.
-----Original Message----- From: Yann Verlynde [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 17:35 To: [EMAIL PROTECTED] Subject: Re: Problem with actionForm scope Hello, Thanks for the answer, My reset method is empty. I have one JSP Page and one form class, but I would like to return on my JSP page after the user has chosen a value in a select tag. The form class is populated with its value and my action class is in charge of getting information from the database (where id = value). I don't understand why my form is reset whereas my reset method is empty Thanks Yann ----- Original Message ----- From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 25, 2002 10:22 AM Subject: RE: Problem with actionForm scope > Well, if your form is defined as using session scope it should work - you > will retain the same form object. In this case you may need to take a look > at what your reset() method is doing as this is called on submit each time > before the form values are populated from the request. > > If screen A has field A (but not B) while screen B has field B (but not A) > and your reset unconditionally clears the values for both A and B then on > screen A you will lose the value for field B and on screen B you will lose > the value for field A - to handle this issue you need to check which screen > did the submit in your reset() method and only clear the fields for which > you will be getting new values. Incidentally you only need to clear fields > for which the view is rendered using a checkbox, radio button, multiple > select, or textarea(?) (these being the ones that submit no values under > certain circumstances and thus create the need for a reset() method in the > first place. > > -----Original Message----- > From: Yann Verlynde [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 25, 2002 17:16 > To: Struts > Subject: Problem with actionForm scope > > > Hello, > > It seems that I lost my attributes of the form. It seems that my form is > reinitialized when the form is redisplayed. > My form is well defined in my struts-config.xml file as to be used in > session scope. > However, I would like to keep these parameter because I would like to fill > the form at different moments. > > name.jsp (1)--->Form class -->name.jsp (filled with the (1) > information)-->Form class etc.... > > Thanks in advance > Yann > > > > > > -- > 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]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

