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:22:21 GMT
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" <gramani@terralink.com>
To: "Struts Users Mailing List" <user@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" <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
> >
> >
>
> ---------------------------------------------------------------------
> 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