Thanks guys, Google actually gave me the fish itself
:-)
http://forum.java.sun.com/thread.jsp?thread=338226&forum=33&message=1387958
The whole code is there at the end, and it works!
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up
the GZip filter in 4.1.17+ I believe.
-Jacob
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: Thu 1/30/2003 12:06 PM
To: Tomcat Users List
Cc:
Subject: Re: Filter: Reading the http response content
Tim Funk wrote:
You must wrap the response in a HttpServletResponse wrapper then
override the getOutputStream/Writer with your own methods which provide
a "proxy" to the real getOutputStream/Writer. The wrapped object then
goes to the next filter in the chain.
I think that what he is asking
You must wrap the response in a HttpServletResponse wrapper then
override the getOutputStream/Writer with your own methods which provide
a "proxy" to the real getOutputStream/Writer. The wrapped object then
goes to the next filter in the chain.
In other words, a pain in the a$$. Before re-inven
Look into using an HttpServletResponseWrapper.
Jake
At 09:46 AM 1/30/2003 -0800, you wrote:
In my filter I want to cache the content of
HttpServletResponse so that I can save that in a file
and use a static file's servlet for the next request.
However, I am not able find interface to get the
(h
In my filter I want to cache the content of
HttpServletResponse so that I can save that in a file
and use a static file's servlet for the next request.
However, I am not able find interface to get the
(html)content from the response object.
if (up2date) {
RequestDispatcher rd =
requ