
May 8th, 2008, 03:34 PM
|
|
Contributing User
|
|
Join Date: Aug 2005
Posts: 35
  
Time spent in forums: 16 h 48 m 34 sec
Reputation Power: 4
|
|
|
Servlets/JSP - Access HTTP Response in filter
Hi
I am wondering if it is possible to obtain the contents of the http response in a filter.
I thought that by wrapping the response in a custom wrapper and by providing a custom ServletOutputStream that writes data to both the normal Outputstream and a ByteArrayOutputStream I would be able to get a handle on the response data sent to the client in the filter.
Does my idea sound feasible? Has anybody else had any success in obtaining the content written to the response from within a filter?
|