Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 41390 invoked from network); 1 Aug 2007 19:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2007 19:08:56 -0000 Received: (qmail 91984 invoked by uid 500); 1 Aug 2007 19:08:46 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 91951 invoked by uid 500); 1 Aug 2007 19:08:46 -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 91940 invoked by uid 99); 1 Aug 2007 19:08:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 12:08:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thechrispratt@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 19:08:17 +0000 Received: by py-out-1112.google.com with SMTP id p76so590488pyb for ; Wed, 01 Aug 2007 12:08:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cgmAUXdYfvgqqMYJoRkhA8onV5YPoVR2iu/o8Vgw2zhxMXz+tSDrxLLi8eQsTfRLW75c6C/VsFiFAIyAB6XhaGwdpkDL5K10PTcgBB26jaR64NzQ+zSdsXfl/Gpxahm7S7K4fZTmE11J8tJ2pmkzwjvZVdJIjBl2ArLRRtDKYU0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EjaU5n4mDLh1Ui+QAOHpaKdeet6RSvpT7QO0WyA/H5cjWxKVvcKz0qjuPuthEFgdNsuEcYyv9dfVZAZFn2DmPMoSkiaNNtoKWfJinjYayjNuIEzyAb4DmehSnfaCXS2LnbDs/ovyyiNDtI6Woqgp31xgGPzmAqC9DKZ/32sgBAo= Received: by 10.65.212.3 with SMTP id o3mr1799748qbq.1185995298850; Wed, 01 Aug 2007 12:08:18 -0700 (PDT) Received: by 10.64.183.1 with HTTP; Wed, 1 Aug 2007 12:08:18 -0700 (PDT) Message-ID: <42db7f0a0708011208w5dc7c8eaqa10deac149b90076@mail.gmail.com> Date: Wed, 1 Aug 2007 12:08:18 -0700 From: "Chris Pratt" To: "Struts Users Mailing List" Subject: Re: Spring 2.0 Session scope beans In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <11950499.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Your best bet is to write it as an Interceptor and add it to your default interceptor stack. (*Chris*) On 8/1/07, Jiang, Jane (NIH/NCI) [C] wrote: > Hi, > > I am experimenting with the Session scope beans. I was able to define > on and verify that one bean is created and associated with each session. > > Could I get access to the session from the bean? I plan to use this > bean to store user information. I need to get the user id from the > request header and populate this object. > > I can also check from the action and populate the bean if it is not > initialized. But then I will have to check from many places. > > Thanks in advance for your help, > > Jane > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org