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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.