Hi, I am using a SessTrack class which implements javax.servlet.http.HttpSessionBindingListener interface for session tracking in the application. The SessTrack is the helper class, in which I have to manipulate servlet context . In Servlet 2.2b API , Is there any way to perform this operation ?
The event you get in the listener is a HttpSessionBindingEvent. From that you can get the session HttpSession s = evt.getSession(); from the session you can get the ServletContext sc = s.getServletContext(); its all in the API. What you can't get is the HttpSessionContext, that method is deprecated and returns null since version 2.1 Bill