Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Listeners and context param  RSS feed

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HOw can HttpSessionAttributeListener and httpSessionBindingListener be used to get values from <context-param> elements?
Is it possible through HttpSesionbindingEvent?
 
Mateus Lucio
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the listener methods of an HttpSessionAttributeListener or HttpSessionBindingListener takes a HttpSessionBindingEvent object
This event object gives you access to an HttpSession object and then to your ServletContext object.




 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!