can filters be used to create request and response wrappers?
if so why?
can Wrappers be used to create filters?
posted 9 years ago
Yes..filters can be used to make wrappers.This is because you might want to compress the response you are getting from a servlet and you can create your own custom response object and pass it as a parameter to the chain.doFilter(req,res) method.
For details of this please refer to HFSJ book.It has been explained beautifully there.Though you do not need to know it in detail.
posted 8 years ago
This is phrasing it a bit strangely- filters are not used to create wrappers or vice versa. In a filter you'd create a wrapper if necessary (it's not required).