Access Session objects

Hi you all,

How can I access, from a normal class which doesn't extend the HttpServlet abstract class, any session objects that might have been stored. It is a requirement that all the classes that I am using which make part of the bussiness logic cannot extend the HttpServlet. Since the HttpServlet in an abstract class I cannot create an instance of it... so how can I access any session objects without extending the HttpServlet class.

Any help is welcome,

Thanks,

MeTitus

[508 byte] By [Me_Titusa] at [2007-10-3 11:32:23]
# 1
You could pass the session object as a parameter to the contructor or in any method calls. However most people will tell that this is poor design an dyou should extract any needed data from the session and only pass that data to the objects instead of the entire session object.
tolmanka at 2007-7-15 13:59:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Understood ;)MeTitus
Me_Titusa at 2007-7-15 13:59:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Understood ;)MeTitus
Me_Titusa at 2007-7-15 13:59:13 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...