Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listener Class

 
Arathi Raj
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are listener class in servlets. Uses of it.
 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Any class which extends one or more listener interface(around 8 interfaces are available in servlet API) is treated as listener class.
If you would like to listen for any event that take place in the container side say session creation,req attribute added or removed and so on..u'll go for listener class.For more details, you can refer to HFSJ book where they've explained these concepts clearly.

Regards,
Priya.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic