I can see compression of a static page (jsp, html etc.) by typing: localhost:8080/myDomain/myHtml.htm, or localhost:8080/myDomain/myJsp.jsp. However, when I try using a servlet e.g. as: localhost:8080/myDomain/MyServlet I see the same size of byte and do not see any compression. MyServlet is a very seimple servlet which spits out content in browser like "Hello World". MyServlet works like JSP to spit out the content in browser. Any idea on why I do not see any compression while I use Servlet URL? Is it a tool for testing only the resource?
subject: Testing Jason Falkner's (OnJava) CompressionFilter