You have to store the information somewhere. So, choose your poison and store it. Store the object in a database, if you like.

At 10:57 AM 2/9/2004, you wrote:
This application will be hosted within an enterprise portal.  Because many
users will be sharing the same session I am prevented from using the session
object.

-----Original Message-----
From: Ben Anderson [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 1:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Passing an ArrayList


>project this application is for mandates only request scope be used Can I ask why? It would make things much easier to set the ArrayList in session scope.

However, I guess you can do this using struts ActionForms.  You'll just need
to make sure that every page you are navigating to includes your ArrayList
in it its entirity (it can be hidden).  As soon as you navigate away from
one of these pages, then all your info will be lost.

-Ben


>From: "Brian Ivey" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts - List" <[EMAIL PROTECTED]> >Subject: Passing an ArrayList >Date: Mon, 9 Feb 2004 12:44:08 -0500 > >I'm working on an application that prompts a user to enter data into 4 text >fields. The user then clicks on a button to submit these to an Action. >These 4 values are used to create an object that is added to an ArrayList. >The page used for data entry is refreshed with the just entered values >appearing as a row in a table. The user may do this as many times as they >wish. > >My problem is that the ArrayList is recreated every time the Action is >called. I understand that this a characteristic of the transient nature of >Actions. Can anyone make any recommendations on possible ways to preserve >this ArrayList between calls to the Action. I'm betting that this could be >resolved by stashing the ArrayList into the request as an attribute or >something similar, but would like some commentary on this issue. BTW, the >project this application is for mandates only request scope be used. > >Thanks, >Brian Ivey > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >

_________________________________________________________________
Let the advanced features & services of MSN Internet Software maximize your
online time. http://click.atdmt.com/AVE/go/onm00200363ave/direct/01/


--------------------------------------------------------------------- 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]



Reply via email to