• 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 Compression when using Struts with tiles

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Anybody tried GZIP compression of response when using Struts & Tiles in an application. Struts is OK but when I am using JSPs with tiles, I am not getting any compressed response back. Any help is appreciated.
Thanks,
sai
 
author
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've used Struts+Tiles successfully with the GZipFilter described in this article. What are you using to compress the response?
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot see how a compressing filter can stop your application work

./pope
 
sai kinnera
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Matt Raible:
I've used Struts+Tiles successfully with the GZipFilter described in this article. What are you using to compress the response?



I amusing GZIPFilter.java,GZIPResponseStream.java and GZIPResponseWraaper.java.

Thanks,
 
sai kinnera
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ali Pope:
I cannot see how a compressing filter can stop your application work

./pope



The response is not coming out compressed or not. The browser is "gzip" supported.
 
author
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have heard that GZipFilter has problems when the app server applies it more than once to a request -- for example, when there are server-side forwards. This definitely happens when using Tiles.

If I may be so bold as to plug my own work, I have created an open-source compression filter that is faster, cleaner and more comprehensive than GZipFilter. It does not suffer from the problem described above. If you are still having trouble, maybe you can give my filter a try?

PJL Compressing Filter
http://sourceforge.net/projects/pjl-comp-filter/
 
sai kinnera
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for giving me the suggestions on this. I found the problem to be with browser IE6.0 SP1 on WindowsXP. Windows2000 works fine. Even on XPwith SP2, most of the pages are working fine except one case where I would generate Excel spreadsheet from xml content. This too works fine in Windows2000 but not on XP (with SP2 also). I have read somewhere that IE6.0 on XP is having problems with excel content. I hope this is a problem with browser that Microsoft has to work on.

Sai
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Anybody tried GZIP compression of response when using Struts & Tiles in an application. Struts is OK



Hey Sai,
Can you please let me know or point me to article how to do this?
I just want to compress my response in struts2.

~Raja
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic