Compression Filter for Java Servlet 2.3
This is a compression filter written in Java that allows you to compress output from any of your pages (JSP, servlet, etc.) or files.
Compatible with Servlet 2.3+.
Usage
- Download netspade-compression-filter.jar and save in the
/WEB-INF/lib/directory of your Web application. -
Enable the filter in your deployment descriptor,
web.xml.<filter> <filter-name>compress</filter-name> <filter-class>com.netspade.servlet.compress.CompressionFilter</filter-class> </filter> -
Map the filter to a URL pattern.
<filter-mapping> <filter-name>compress</filter-name> <url-pattern>*.jsp</url-pattern> </filter-mapping>
Source Code
Download: netspade-compress.tar.gz