The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

tempusfugit (144) [Avatar] Offline
Chapter 7 page 109-110 Table 7.5 order of filter invocation in filter chaining

For both the "red/red/aaa" and "red/aaa" rows "Filter Invocation Order" should be "None" and "Mappings with URL Pattern" should be blank.

"NONE (404 Error)" means "Status code (404) indicating that the requested resource is not available." The filters are not invoked UNLESS the container CAN map the resource.
The filters will only be invoked if the application has a default Servlet which then sends the 404 error/status code. Nothing in the scenario implies this.

Chapter 8 page 127 "Incorrect use of HttpSessionListener"

This example is no longer relevant as the Servlet API 2.4 has adjusted the behavior of the sessionDestroyed callback:

"Change the behavior of HttpSessionListener.sessionDestroyed to notify before the session is invalidated ("

"Notification that a session is ABOUT to be invalidated."