Ok, then I guess I'm stumped too.. Sorry! (just for kicks though, can you use your debugger or something and see *right after* you set your session attribute "myform", what values does it have? Are they correct? Just curious to know where the resetting to old bad values happen.. Also, another thing: make sure your formbean name is correct with right case and everything! I've got burned here in the past..!)
> -----Original Message----- > From: Matt Bathje [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 22, 2004 12:01 PM > To: Struts Users Mailing List > Subject: Re: session form "reset" > > > It doesn't give me an error if I do > session.setAttribute("myform", myForm); > after I do the removeattribute. It just keeps the "incorrect" > data in the > form. > > I just tried it without doing the removeattribute, and it > still leaves the > wrong data. (No crashes though...) > > Matt Bathje > > > ----- Original Message ----- > From: "Geeta Ramani" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Thursday, April 22, 2004 10:43 AM > Subject: RE: session form "reset" > > > > How about just this: (iow, don't add the > "session.removeAttribute("myform"); bit. That's the part that > gives you the > error, right?) > > > > > > > > myForm.set("mybean", mybean); > > > request.setAttribute("mybean", mybean); > > > session.setAttribute("myform", myForm); > > > > Won't that work for you? > > Geeta > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]