Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8: Listeners

Chapter 8
Listeners

The Servlet API comes with a set of event classes and listener interfaces for event-driven programming in servlet/JSP applications. All event classes are derived from java.util.Event and listeners are available in three different levels, the ServletContext level, the HttpSession level, and the ServletRequest level.

This chapter demonstrates how to write listeners and use them in servlet/JSP applications. One of the listener interfaces, javax.servlet.AsyncListener, is a new addition to Servlet 3.0 and discussed in Chapter 14, “Asynchronous Operations.”


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial