• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GZip encoding in JSPs

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I am aware of the usage of GZip format.
I know that i can use this for of encoding to compress the data sent to the browser provided the browser understands this format).
I achive this by writing the code in the service() method of my servlet.
How can i achive this if i use jsps instead of my servlets (Assuming that i have no servlets). Is writing the Filter for Compression the only way out??
Regards,
Sajee
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two best methods:
1. Writing a filter
2. If you use Apache, enable the gzip module and let apache do it for you.
 
Ranch Hand
Posts: 427
 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by brad balmer:
There are two best methods:
1. Writing a filter
2. If you use Apache, enable the gzip module and let apache do it for you.


correct...
I prefer using a filter even when using tomcat. I have written a better logic to determine if the client can accept gzip or not and send them the appropriate output.
[ March 29, 2004: Message edited by: Brahim Bakayoko ]
reply
    Bookmark Topic Watch Topic
  • New Topic