Paul Heckman (2) [Avatar] Offline
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.