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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Testing Jason Falkner Watch "Testing Jason Falkner New topic
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?
 
Don't get me started about those stupid light bulbs.
 
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?
Welcome!