Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 11209 invoked from network); 31 Aug 2006 07:13:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 07:13:40 -0000 Received: (qmail 15050 invoked by uid 500); 31 Aug 2006 07:13:30 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 14961 invoked by uid 500); 31 Aug 2006 07:13:30 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 14950 invoked by uid 99); 31 Aug 2006 07:13:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 00:13:30 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mymailnot@gmail.com designates 64.233.162.198 as permitted sender) Received: from [64.233.162.198] (HELO nz-out-0102.google.com) (64.233.162.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 00:13:29 -0700 Received: by nz-out-0102.google.com with SMTP id f1so256215nzc for ; Thu, 31 Aug 2006 00:13:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LgMaxfDy+2dFWG09KGIEzOOmxD4AcGRBCVj8g2sn4mUUjcf6U9F54v+/Gf0YIRuWxvVenZdthKDTEerlAdTFhhTws81H3mW/EOgPz1oGnNLHFu2yx5UWW8flai/xgKp1qKmLUi/P9sQeuL2snXnahX7/SqjLD2i9Nmn+ztYuooc= Received: by 10.65.59.20 with SMTP id m20mr690110qbk; Thu, 31 Aug 2006 00:13:07 -0700 (PDT) Received: by 10.64.178.17 with HTTP; Thu, 31 Aug 2006 00:13:07 -0700 (PDT) Message-ID: <72d2e8810608310013y6c33460w5809aa98e822a63c@mail.gmail.com> Date: Thu, 31 Aug 2006 07:13:07 +0000 From: "nuwan chandrasoma" To: "Struts Users Mailing List" Subject: Re: Retrieve Data From WebServer In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_38025_22346081.1157008387891" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_38025_22346081.1157008387891 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Cache what ever data you want,so that when every time it wont do a DB call, but you need to use session to keep the cache data list. Thanks, Nuwan. On 8/31/06, Anil Kumar T wrote: > > > 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:Raman.Rokariya@fmr.com] > 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 > info.in@infics.com and delete this email from your records. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > ------=_Part_38025_22346081.1157008387891--