Jason Hunter wrote:
> Kayser William wrote:
> >
> > Anyone have any ideas how to compress jsp pages using the
> > content-encoding http1.1 header?
>
> It's my belief that you can't, because JSP is meant for writing text,
> and GZip output is binary.
>
Hmmm, might this be possible if the servlet container did it for you? I'm
thinking of something you could configure in to the request processing path (in
Jakarta Tomcat, you might use an Interceptor) that checked the "accept" headers in
the request and compressed on the fly under appropriate circumstances (perhaps,
output over a certain length with a certain content type) based on configuration
parameters.
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html