Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 88017 invoked from network); 21 Jun 2005 21:30:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2005 21:30:06 -0000 Received: (qmail 33101 invoked by uid 500); 21 Jun 2005 21:29:54 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 32928 invoked by uid 500); 21 Jun 2005 21:29:53 -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 32915 invoked by uid 99); 21 Jun 2005 21:29:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2005 14:29:53 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.235.234.14] (HELO chiron.lunarpages.com) (64.235.234.14) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2005 14:29:55 -0700 Received: from pcp05109618pcs.potshe01.pa.comcast.net ([69.139.22.34] helo=[127.0.0.1]) by chiron.lunarpages.com with esmtpa (Exim 4.50) id 1DkqJc-0004dJ-2h for user@struts.apache.org; Tue, 21 Jun 2005 14:29:52 -0700 Message-ID: <42B886CD.9050109@omnytex.com> Date: Tue, 21 Jun 2005 17:29:49 -0400 From: "Frank W. Zammetti" Reply-To: fzlists@omnytex.com Organization: Omnytex Technologies User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Storing data in session scope References: <1c19f39105062113373642c07b@mail.gmail.com> <042b01c576a2$08d14880$28ad93d1@irm.local> <442cdcf00506211351435ebf1e@mail.gmail.com> <42B8802E.8050503@omnytex.com> <1c19f39105062114132a01a70b@mail.gmail.com> In-Reply-To: <1c19f39105062114132a01a70b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - chiron.lunarpages.com X-AntiAbuse: Original Domain - struts.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - omnytex.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Do you truly need this information everywhere in the app? If not you might be able to quite easily get away with just reading it in every time you need it. Create a helper class with a single method that returns some Map or something (or a custom bean, whatever is appropriate) and use this class wherever you need the data. Remember that what your talking about, since it sounds like the data is primarily stored in a database, is caching. Caching can get very complicated in a hurry in terms of keeping things up to date and such. You'll either need to tackle all the details yourself, or you will need to find a 3rd-party library to take care of the details for you, which of course carries its own problems (and benefits). Wendy offered a link in a previous post if you choose to go that direction. Frank Rafael Taboada wrote: > I really appreciate ur help, thanks to everybody for ur reply. > In my web.xml file I have: > > /index.jsp > > So when the user write the URL http://localhost:8084/SanCristobal... It > calls the index.jsp file. > This file has a frameset (I didn't use tiles). > So, My doubt is how to store some data in application scope. > What data do I need to store???. Data that it has to be updated if the user > goes to a module which update that data but in database. So If the user > updates the data, it has to be updated automatically in the application > scope. > This data is not big... Here in Peru we have to know how much a dolar costs > in Soles (our coin). So the entire application needs to know the cost. > Another data is about TAX and it's the same for all users. > Ey Dave Newton, I don't practice Kali/Arnis > > -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org