This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session and header

 
David Qiu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, friends. Is there any event listener to listen to the session creation and destroyment event? And another is that how to fetch header information set by HttpServletResponse interface?
thanks.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
U can get it using response.getAllHeaders() function. This will return an Enumeration. U can iterate through it.
And u can implement HttpSessionBindingListener interface in the object that u are binding to the session. There are 2 methods in this interface. valueBound() and one more method to listen to unbound event. U can override these methods.
regards
Rajesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic