This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inside the class that implements HttpSessionListener

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice Explanation. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic