wood burning stoves 2.0*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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", http://www.jspbook.com by Jayson Falkner) is found under URL:

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
Similar Threads
grabbing a parameter in jsp
JSP Newbie
How to upload files?
Where can I find free jsp projects online?