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