Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GZIP Compression when using Struts with tiles

 
sai kinnera
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • 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
 
Matt Raible
author
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • 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?
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Sean Owen
author
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
RajaShekhar Gundeti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic