Re: static method to get servlet context

2008-05-13 Thread Nilesh Bansal
Thanks. ThreadLocal is exactly what I am looking for. -Nilesh On Sun, May 11, 2008 at 9:37 PM, Bill Barker <[EMAIL PROTECTED]> wrote: > > "Nilesh Bansal" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > hi all, > > > > I want to know if Tomcat (servlet api) provides some wa

Re: static method to get servlet context

2008-05-11 Thread Bill Barker
"Nilesh Bansal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi all, > > I want to know if Tomcat (servlet api) provides some way by which a > Java method can get session information or page context associated > with the current executing thread? > The short answer is no: Tomcat

static method to get servlet context

2008-05-11 Thread Nilesh Bansal
hi all, I want to know if Tomcat (servlet api) provides some way by which a Java method can get session information or page context associated with the current executing thread? Inside a JSP or a class implementing HttpServlet, one can easily get the page context and session information. But is t