On Apr 7, 2011 5:48 AM, "Ganesh" wrote:
> I am using Struts 1.0.2.

Good lord why?

> I want to access session objects in a class other than Action. Is there
any way to acheive it rather than passing the information via parameter to
each and every function?

You could create a thread local and access it via a Singleton, but that's
kind of ugly too IMO.

If you find yourself passing around the same info a lot there's a good
chance you've missed a design opportunity, though.

Dave

Reply via email to