You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ivan Balashov <Iv...@pobox.spbu.ru> on 2002/05/02 15:38:27 UTC

JSP's GzippedOutputStream

Hi!
Afaik servlets may produce Gzipped template output something like this:
  .......
  OutputStream out1 = response.getOutputStream();
  out = new PrintWriter(new GZIPOutputStream(out1), false);
  response.setHeader("Content-Encoding", "gzip");
  .........

But how we can do that with JspWriter? Is it possible to do similar
with JSP?

Use Tomcat 4.x

Thanks!


-- 
Sincerely yours,
 Ivan                          mailto:Ivan.Balashov@pobox.spbu.ru


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: JSP's GzippedOutputStream

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Thu, 2 May 2002, Ivan Balashov wrote:

> Date: Thu, 2 May 2002 17:38:27 +0400
> From: Ivan Balashov <Iv...@pobox.spbu.ru>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>,
>      Ivan Balashov <Iv...@pobox.spbu.ru>
> To: tomcat-user@jakarta.apache.org
> Subject: JSP's GzippedOutputStream
>
> Hi!
> Afaik servlets may produce Gzipped template output something like this:
>   .......
>   OutputStream out1 = response.getOutputStream();
>   out = new PrintWriter(new GZIPOutputStream(out1), false);
>   response.setHeader("Content-Encoding", "gzip");
>   .........
>
> But how we can do that with JspWriter? Is it possible to do similar
> with JSP?
>

No.

JSP is for text output only, not binary.

> Use Tomcat 4.x
>
> Thanks!
>
>
> --
> Sincerely yours,
>  Ivan                          mailto:Ivan.Balashov@pobox.spbu.ru
>

Craig


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>