| Author |
Testing Jason Falkner's (OnJava) CompressionFilter
|
Sam Gehouse
Ranch Hand
Joined: Jul 21, 2003
Posts: 281
|
|
Anyone had luck in testing Jason Falkner's CompressionFilter? Test code to test Jason Falkner's GZipFilter ("Servlets and JavaServer pages; the J2EE Web Tier", http://www.jspbook.com by Jayson Falkner) is found under URL: http://www.jspinsider.com/showsource.jsp?resource=/content/dev/todelete/tfessh/TestGZIP.jsp I am using Jason Falkner's filter. However, byte size returned by code in http://www.jspinsider.com/showsource.jsp?resource=/content/dev/todelete/tfessh/TestGZIP.jsp is the same for both compressed and uncompressed mode.
|
 |
Sam Gehouse
Ranch Hand
Joined: Jul 21, 2003
Posts: 281
|
|
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
|
|
|