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.

Paul Heckman (2) [Avatar] Offline
#1
On page 486 the statement is made: “doFilter(ServletRequest, ServletReponse):
Called by the container for each request whose URL is mapped to this filter.”
(Some one forgot the last parameter of type FilterChain).

However, according to Sun Microsystem’s online J2EE 1.4 API Specification
the following doFilter methods should be using for the corresponding circumstances:

doFilter(ServletRequest, ServletResponse, FilterChain)

- Method in interface javax.servlet.Filter
The doFilter method of the Filter is called by the container each time a request/response pair
is passed through the chain due to a client request for a resource at the end of the chain.

doFilter(ServletRequest, ServletResponse)

- Method in interface javax.servlet.FilterChain
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter
in the chain, causes the resource at the end of the chain to be invoked.

Also on page 115 the coding statement “pw.println(htmlFile.toString());” was indented
three spaces for no apparent reason.