Subject: Re: ActionForm across multiple pages - confusion From: "David Chu" <[EMAIL PROTECTED]> === Ah, ok, that makes sense. I didn't realize I actually had two distinct ActionForm objects. Thanks guys.
-- -david ------------------------------ David C. Chu America Online Network Tools Intern ------------------------------ "Dan Petrie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi David, > > Since your object is in request scope, once the request is processed (i.e. > page displayed), there is no longer a reference to the form. When a new > request is submitted, a new form instance is created, the reset(...) method > is called (important when using session scope beans), and then the form is > populated with all properties specified on the page. I hope this clears > things up. > > Dan > > -----Original Message----- > From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 3:55 PM > To: [EMAIL PROTECTED] > Subject: Re: ActionForm across multiple pages - confusion > > > Subject: Re: ActionForm across multiple pages - confusion > From: "David Chu" <[EMAIL PROTECTED]> > === > But I am using request.setAttribute() to resupply the same ActionForm from > Action2 to jsp2 (The same way I would prepopulate jsp1 from Action1). If I > am referencing the same ActionForm, where does the destroying of the old > values and the recreation of a new ActionForm occur? > > -- > -david > > ------------------------------ > David C. Chu > America Online > Network Tools Intern > ------------------------------ > "David Wood" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]... > > As long as you keep the hidden fields, you get all the information. If > > you don't put the hidden tags and you're using request scope, then when > > you go to the 3rd action, it's creating a new ActionForm instance and it > > loses any previous values it had. The only values it will receive are > > in the new request. > > > > The other way to do it is to make the form in session scope and not use > > the reset method, but I don't think that's necessarily any better. > > > > -- dave > > > > Struts Newsgroup (@Basebeans.com) wrote: > > > > >Subject: ActionForm across multiple pages - confusion > > >From: "David Chu" <[EMAIL PROTECTED]> > > > === > > >Hello, I will try to make this very brief: > > >It is necessary for me to populate an ActionForm on two separate pages. > So > > >the sequence is: > > >Action1 -> jsp1 -> Action2 -> jsp2 ->Action3 > > > > > >Suppose I specify some set of properties X that I gather with inputs on > jsp1 > > >and another set of properties Y that I gather with input on jsp2. > > > > > >However, it seems that if I do not include <html:hidden> tags on jsp2 for > > >all of X, Action3 sees null values for all X. > > > > > >My ActionForm is in the request scope, but I am passing it along. So why > > >aren't my values persistent? > > > > > >(this must be the 20th time I've been confused, thanks a lot for the help > > >yall) > > > > > >-- > > >-david > > > > > >------------------------------ > > >David C. Chu > > >America Online > > >Network Tools Intern > > >------------------------------ > > > > > > > > > > > > > > > > > >-- > > >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]> > > > ********************************************************************** > Note: By opening this email and/or any attachments > contained within this file, you assume sole responsibility for > any alteration of data that may occur as a consequence of > any data transfer or copying process. > > The information contained in this message may be > privileged and confidential and protected from disclosure. > If the reader of this message is not the intended recipient, > or an employee or agent responsible for delivering this > message to the intended recipient, you are hereby notified > that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received > this communication in error, please notify us immediately by > replying to the message and deleting it from your computer. > > For more information on Harbor Fund's privacy policy please > visit http://www.harborfund.com/privacy.htm > > Thank you. > > Harbor Capital Advisors, Inc. One SeaGate. Toledo, OH-43666. > Tel: 419-247-1940 > Email: [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]>

