We used thread local when we wanted something similar.. But now we have shifted 
to Struts 2 and so everything is on the ActionContext and hence accessible..

-----Original Message-----
From: Massimo Ugues [mailto:m.ug...@gmail.com] 
Sent: Thursday, April 07, 2011 7:25 AM
To: Struts Users Mailing List
Cc: Brian Thompson; Dave Newton
Subject: Re: Accessing session objects other than action in Struts 1.x

> I want to access session objects in a class other than Action.
You have to pass the ServletRequest object or the Session object to the 
instance of that class.

Mazi

On Thu, Apr 7, 2011 at 2:24 PM, Brian Thompson <elephant...@gmail.com>wrote:

> On Thu, Apr 7, 2011 at 7:05 AM, Dave Newton <davelnew...@gmail.com> wrote:
>
> > On Apr 7, 2011 5:48 AM, "Ganesh" wrote:
> > > I am using Struts 1.0.2.
> >
> > Good lord why?
> >
> >
> Legacy code, I'll wager.  If he were building something brand-new, it 
> would be a no-brainer to use Struts 2.
>
> -Brian
>



--
Massimo Ugues
http://m4zi.wordpress.com/
jabber: m.ug...@gmail.com
skype: m.ugues

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to