Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling a listener class

 
devika cha
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a class saying MyNewBindingClass which implements HttpSessionBindingListener
now how can i call this class from a servlet?
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't call listeners, the container does. You also must put a <listener> element in your deployment descriptor to tell the container about your listener class.
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When to use listener? Please give me some examples.

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic