OK - I have to ask...
Why would you want to do this?
If you are trying to improve throughput for your modem-connected users,
then this is probably a waste of time, as modems by default do 4:1 (max)
compression/decompression.
From: Bill Kayser
> You can certainly do compression by setting the response header and
> using the gzip output stream, writing into a buffer. We did this and
> it worked well up to a point. Some pages in combination with certain
> versions of the browsers resulted in the web browser hanging or
> crashing, and for Netscape we had great difficulty printing any pages
> that came back compressed. I don't know if there was a solution to
> these problems but we dropped it. Make sure you test it thoroughly.
>
> The additional load on the webserver was surprisingly small, maybe 15%.
> There was no noticeable difference in response of the web browser.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html