File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Testing Jason Falkner's (OnJava) CompressionFilter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Testing Jason Falkner Watch "Testing Jason Falkner New topic

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", by Jayson Falkner) is found under URL:

I am using Jason Falkner's filter.
However, byte size returned by code in
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?
I agree. Here's the link:
subject: Testing Jason Falkner's (OnJava) CompressionFilter
jQuery in Action, 3rd edition