There is a CompressionFilter class shipped with with Tomcat which compresses the ServletResponse that I'm considering using (we have some remote offices which have slow links):
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/examples/WEB-INF/classes/compressionFilters/CompressionFilter.java?rev=1.8&view=auto It looks OK to me and seems to work fine when I plug it into my app. I'm a bit concerned that its only an "example" class rather than standard feature of Tomcat. Has anyone used this in a 'live' environment and if so are there any issues or with it or recommendations? Does anyone have any alternatives that they have deployed? Niall