File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Listener confusion!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Listener confusion!!" Watch "Listener confusion!!" New topic
Author

Listener confusion!!

Mark Henryson
Ranch Hand

Joined: Jul 11, 2005
Posts: 200
Hi,
I am learning the Servlets in Head First Servlets and JSP Book. I am finding diffculty in understanding the listener topics(such as ServletContextListener, HttpSessionListener.....).

This book explains everything very clearly by pictorial representation and I understood very well all the topics expect the listener section. I am just wondering even if I can't understand the concepts in this book, whether this topics can be learnt from some other material or free on-line tutorial.

However, If anyone knows the good tutorial for beginners will be very useful. And also just give a brief introduction to why we are using listener interfaces in servlets and its uses?
Keith Pitty
Ranch Hand

Joined: Sep 22, 2005
Posts: 32
The following article may help: http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html

Essentially, servlet listeners enable objects that implement these listener interfaces to be notified when events of interest occur within the web container.

For example, the HttpSessionListener enables monitoring of changes to active sessions within a web application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listener confusion!!