File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Listener Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Listener Class" Watch "Listener Class" New topic

Listener Class

Arathi Raj
Ranch Hand

Joined: Nov 22, 2002
Posts: 90
What are listener class in servlets. Uses of it.
Priya Jothi
Ranch Hand

Joined: Jul 13, 2004
Posts: 168

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.

I agree. Here's the link:
subject: Listener Class
It's not a secret anymore!