Only 49 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Filter Problem in Servlet  RSS feed

 
Sandeep Gupta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented filter that compress the response and send back to browser . Problem is that I am getting Garbage Value in Browser
 
Marty Hall
Author
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented filter that compress the response and send back to browser . Problem is that I am getting Garbage Value in Browser

I have had good luck using a Filter that does gzip compression. Before trying to compress, did you check the Accept-Encoding request header to be sure gzip was listed? Did you set the Content-Encoding response header to tell the browser you were sending gzipped content? Did you remember to call "close" on the GZIPOutputStream? If so, post the URL of your filter so we can look?
Mine is online in Chapter 9 of http://archive.moreservlets.com/
Cheers-
- Marty
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!