This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Similar Threads
problem with spring security
web application listeners
listener tag makes the service false
what to put here