struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Bathje" <...@ntsource.com>
Subject Re: session form "reset"
Date Thu, 22 Apr 2004 16:00:46 GMT
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" <gramani@terralink.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message