Check your server logs for exceptions that say the response has already been committed. We had a programmer try to create a compression filter based on the source from one of those articles and it did not work on our production servers. Worth a look...
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 2:56 PM To: [EMAIL PROTECTED] Subject: Compression Filter I'm trying to implement a compression filter on the HTTP response similar to that discussed in http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=1. When requesting straight JSP's, it works fine, but any Struts ".do"s do not work. Specifically, it appears the compression filter itself functions normally, but the browser responds with an empty page. (The source code, cryptically enough, does include <html><body></body></html>, but I suspect that's being defaulted somewhere.) I've tried: - Configuring the filter to handle *.do as a url-pattern, instead of the servlet-name "action". - Commenting out the compression code entirely, leaving only GZIPResponseWrapper wrappedResponse = new GZIPResponseWrapper(res); chain.doFilter(req, wrappedResponse); - Executing the compression on a subclass of ActionServlet (after the super's doGet/doPost are called). ...but still the same results. We are running Struts on Sybase EAServer 4.2, by the way. Thanks in advance, Shahak Nagiel Software Engineer Northrop Grumman Mission Systems --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]