You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Geeta Ramani <gr...@terralink.com> on 2004/04/22 18:19:17 UTC
[OT] RE: session form "reset"
yippee, time for lunch then: you've earned it..:)
> -----Original Message-----
> From: Matt Bathje [mailto:mpb@ntsource.com]
> Sent: Thursday, April 22, 2004 12:22 PM
> To: Struts Users Mailing List
> Subject: Re: session form "reset"
>
>
> Well I changed my tactic a little and got somethign to work -
> instead of
> trying to reset the info in the submit action, in the
> preloader action I get
> the info out of the form and reset it to default data. Don't
> know why I
> hadn't thought of that before.
>
> Thanks for the help.
>
> Matt Bathje
>
>
> ----- Original Message -----
> From: "Geeta Ramani" <gr...@terralink.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Thursday, April 22, 2004 11:09 AM
> Subject: RE: session form "reset"
>
>
> > 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:mpb@ntsource.com]
> > > 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" <gr...@terralink.com>
> > > To: "Struts Users Mailing List" <us...@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
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org