Which about filters are true?
A- Filters may be used to create request or response wrappers
B- Wrappers may be used to create request or response filters
Correct answer is A (answer is on page 703)
Why is the answer is A? On what page should I look in order to see an example that Filters may be used to create request or response wrappers. I only see that you could extend wrappers.
I don't know if it's related but on page 689 it also shows that by extending an HttpServletResponseWrapper, the filter could get custom Response object that it sends to the
servlet. Then that servlet could write output to that custom Response. So p689 doesn't try to show that filters may be used to create response wrappers.
[ December 24, 2006: Message edited by: Firas Zuriekat ]