File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes inside the class that implements HttpSessionListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "inside the class that implements HttpSessionListener" Watch "inside the class that implements HttpSessionListener" New topic
Author

inside the class that implements HttpSessionListener

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
This is inside the class that implements HttpSessionListener


Is there anything possible from which i will get a handle to HttpServletResponse using HttpSessionEvent??

Any ideas from anybody please


If you want something you never had do something which you had never done
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
No. Anything that affects the response must be done in the servlet or by a filter, not in a listener. Note that there's no guarantee that the response hasn't been committed by the time the session listener is called.


Ping & DNS - updated with new look and Ping home screen widget
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Nice Explanation. Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: inside the class that implements HttpSessionListener
 
Similar Threads
listener help
Listeners automatically thread safe?
Concurrent Modification Exception in sessiontime out class
To Understand
HttpSessionListener in JSF App