File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes GZIP Compression when using Struts with tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "GZIP Compression when using Struts with tiles " Watch "GZIP Compression when using Struts with tiles " New topic
Author

GZIP Compression when using Struts with tiles

sai kinnera
Ranch Hand

Joined: Aug 12, 2004
Posts: 52
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

Joined: Jan 11, 2001
Posts: 114
I've used Struts+Tiles successfully with the GZipFilter described in this article. What are you using to compress the response?


Matt<br /> <br />Author: <a href="http://springlive.com" target="_blank" rel="nofollow">Spring Live</a> and <a href="http://www.apress.com/book/bookDisplay.html?bID=256" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="http://raibledesigns.com" target="_blank" rel="nofollow">Raible Designs</a> <a href="http://jroller.com/page/raible" target="_blank" rel="nofollow">Spring Live Blog</a>
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
I cannot see how a compressing filter can stop your application work

./pope


blog - InfoQ.com
sai kinnera
Ranch Hand

Joined: Aug 12, 2004
Posts: 52
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

Joined: Aug 12, 2004
Posts: 52
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

Joined: Nov 08, 2004
Posts: 21
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

Joined: Aug 12, 2004
Posts: 52
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

Joined: Nov 23, 2012
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GZIP Compression when using Struts with tiles