We tried using Orion to host 2 servlets, one using compression one not - the
one using compression was much faster than the one without it. I assume
this means that orion's JSP are not compressed.
Please repsond if this is an inaccurate statement
Thanks
Nate
> -----Original Message-----
> From: Kirby, Nathaniel [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 16, 2000 1:30 PM
> To: Orion-Interest
> Subject: Compressing the output stream
>
>
> On jsp-interest
> [http://archives.java.sun.com/cgi-bin/wa?A2=ind9912&L=jsp-inte
> rest&P=R11079
> ] I read
>
> *******************
>
> Date: Mon, 6 Dec 1999 12:29:14 +0100
> Reply-To: Volker Turau <[EMAIL PROTECTED]>
> Sender: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
> From: Volker Turau <[EMAIL PROTECTED]>
> </cgi-bin/wa?A2=ind9912&L=jsp-interest&D=0&P=64939>
> Subject: Re: How to compress JSP pages using Content Encoding
> Comments: To: Kayser William <[EMAIL PROTECTED]>
> In-Reply-To: <[EMAIL PROTECTED]>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>
> You can do content encoding in jsp, I did it. Just make sure
> that the page
> does not access the implicit variable out at all (e.g do not
> have blanks
> outside scripts).
>
>
> But I think that jsp is not the right tool to do that. The
> JSP-Container
> should do that for you.
>
>
> The code is roughly:
>
>
> <%@page .....><%
> response.setHeader("Content-Encoding", "gzip");
> GZIPOutputStream gos = new
> GZIPOutputStream(response.getOutputStream());
> byte[] b = "<html> bla bla ...</html>".getBytes();
> gos.write(b);
> gos.close();
> %>
>
>
> volker turau
> FH Wiesbaden Fachbereich Informatik
> Tel.: +49-611-9495-205 FAX +49-611-9495-210
> <http://www.informatik.fh-wiesbaden.de/~turau>
>
>
>
> ==============================================================
> ============
> 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>
>
> *******************
>
> Does orion do this automatically ? caus eit doesn't seem to
> allow me to in a
> JSp (I can't assign out to a different stream). Do I have to
> do it in a
> servlet ?
>
> Anyone out there know ???
>
> TIA,
> Nate
>
>