• Post Reply Bookmark Topic Watch Topic
  • New Topic

Listeners and context param

 
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.




 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!