Thanks For your quick response.
However, I have a monitor which shows the different graphical views in
it. These monitors can be different depending on monitorId and user
logged in.

Hence, the data would be different for different ids. So, as you said,
Singleton class can not be usefull in this case.

/Raman

-----Original Message-----
From: Anil Kumar T [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 31, 2006 12:17 PM
To: Struts Users Mailing List
Subject: RE: Retrieve Data From WebServer



Hi,
I was also having similar problem some time back. According to my
knowledge...

If the data is common to all the users then may be you can have a
singleton class and then only once you can populate the data, and every
time you use the same data.

If the data is user specific then I think storing in the session is
must.

Lets wait about the others ideas also...

Cheers,
Anil.

-----Original Message-----
From: Rokariya, Raman [mailto:[EMAIL PROTECTED]

Sent: Thursday, August 31, 2006 10:20 AM
To: user@struts.apache.org
Subject: Retrieve Data From WebServer

Hi,

I am developing web client using Struts Framework. I am facing a problem
in following scenario.


I have an arraylist of Data , which is populated in Table Grid using
Display-Tag library. The first time when the page appears, the data
comes from the Database.

It is working fine for the first time . However, my page refreshes after
some interval , say 5 mins, during subsequent refreshes, I don't want
that the data should again come through the Database call. I have tried
using ThreadLocal utitity, however it doesn't work.

I have tried using JSP Session object, and it worked. However, I want to
avoid the use of Session object in the project.

Any solution/Ideas would be highly appreciated.

Thanks
Raman







Information transmitted by this e-mail is proprietary to Infinite
Computer Solutions and / or its Customers and is intended for use only
by the individual or the entity to which it is addressed, and may
contain information that is privileged, confidential or exempt from
disclosure under applicable law. If you are not the intended recipient
or it appears that this mail has been forwarded to you without proper
authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at [EMAIL PROTECTED] and delete this email from
your records.

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