Hi,
this example is from my forthcoming book on Java Server Pages
and has been test with Tomcat 3.1 and IE 4.0. Do not leave a blank
between %> and <%
<%@ page errorPage="/util/errorpge.jsp"
import="java.util.zip.*"
session="false"%><%
response.setHeader("Content-Encoding", "gzip");
GZIPOutputStream o = new GZIPOutputStream(response.getOutputStream());
String a = "<H1>GZIP ist Klasse und schnell</H1> aber .....";
o.write(a.getBytes());
o.flush();
o.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".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets