Is there a way to gzip the output of a JSP ?
Based on the HTTP Accept-Encoding header field, I open a GZIPOutputStream if
supported by the client browser, and I send the response.getOutputStream in
it. This is within a servlet.
When I just write directly in the GZIPOutputStream, it works fine.
Cécile QUERAN wrote:
>
> Is there a way to gzip the output of a JSP ?
>
> Based on the HTTP Accept-Encoding header field, I open a GZIPOutputStream if
> supported by the client browser, and I send the response.getOutputStream in
> it. This is within a servlet.
>
> When I just write directly in
I think the latest servlet spec. brings the concept of "filters" which you
can install as the post-processor for your output streams. Tomcat 4.0
should have support for this (and as far as I remember one sample filter
that comes with it is the GZIP filter).
Also Apache should have a way for this
a lot for your help.
L. QUERAN
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 1:27 PM
Subject: Re: GZIP, JSP and servlet
>
> I think the latest servlet spec. brings the concept