Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

session listeners

 
R K Singh
Ranch Hand
Posts: 5388
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am remembering.
  • HttpSessionAttributeListener has to be added in web.xml under <listener> tag.
  • HttpSessionListener has to be added in web.xml
  • HttpSessionBindingListener are not needed to add in web.xml
  • HttpSessionActivationListnere are not needed to add in web.xml


  • When you call invalidte then
  • value is unbounded (is specific to object which is being unbounded)
  • value is removed(is specific to that web-app)
  • then session is destroyed(is specific to context) and will be called once per session


  • here is class for Demo purpose

    here is servlet

    If I am wrong then plz correct me.
    there is no question
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!