Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session listeners

 
R K Singh
Ranch Hand
Posts: 5384
  • 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