ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Two Servlet Filters Every Web Application Should Have
Subject:   GZIPResponseWrapper produces no output
Date:   2004-05-21 06:55:38
From:   Gunnar
Hello,
I have downloaded the latest version of the GZIP compression filter, but I am still getting the following problem.


[I am using Struts 1.1 (don't know if this has anything to do with my problem).]


When I try to compress plain HTML files, all I see are the HEAD and BODY tags. However, the contents of these tags remain empty.


This is my web.xml:


<filter>
<filter-name>Compress</filter-name>
<filter-class>de.ruv.ruvde.filters.CompressResponseFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>Access Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Compress</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Compress</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Compress</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>


The compression for *.do work fine. But as soon as I try to download a pure HTML file, the page displayed remains empty.


Any ideas?


Thanks in advance,
Gunnar



1 to 2 of 2
  1. GZIPResponseWrapper produces no output
    2007-07-20 07:34:54  ManfredJS [View]

  2. GZIPResponseWrapper produces no output
    2004-10-20 08:54:10  saikinnera [View]

1 to 2 of 2