Chapter 6. The Application Events Framework

Topics in This Chapter

  • Understanding the general event-handling strategy
  • Monitoring servlet context initialization and shutdown
  • Setting application-wide values
  • Detecting changes in attributes of the servlet context
  • Packaging listeners in JSP tag libraries
  • Recognizing creation and destruction of HTTP sessions
  • Analyzing overall session usage
  • Watching for changes in session attributes
  • Tracking purchases at an e-commerce site
  • Identifying request creation and destruction
  • Tracking server request load
  • Monitoring request attribute addition and change
  • Using multiple cooperating listeners

Developers have many tools at their disposal for handling the life cycle of individual servlets or JSP pages. The servlet ...

Get Core Servlets and JavaServer Pages, Volume 2: Advanced Technologies, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.