You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nilsson Ulf /Konsult <Ul...@riksbank.se> on 2005/10/19 14:13:50 UTC

Struts and Compression Filter...

Hi!

I'm trying to add a compression filter,
http://archive.moreservlets.com/Filter-Code/filters/WEB-INF/classes/more
servlets/filters/CompressionFilter.java
To my web-app.
I want the filter to compress everything that the action servlet returns
(forwards). (mapping = *.do)

However I can't get this to work. Pages just return empty.
(the filter works for *.jsp etc)

I'm using Struts 1.2.4 and a servlet 2.3 container (Sybase EAServer).


Has anyone out there successfully used compression filters with struts?

TIA,
Ulf Nilsson


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts and Compression Filter...

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
I *vaguely* remember solving that problem for the CompressionFilter in
Java Web Parts (http://javawebparts.sourceforge.net).  IIRC, it had
something to do with... well, never mind, I don't remember! :)  The point
is though that the problem affected output from servlets but not
directly-accessed resources, which sounds eerily familiar.  Maybe you
could try the JWP version of the filter and see if it works?  If it does I
can check the revision history and see what I changed to fix it (I'm sure
I noted the change in the history at least, so I know what version the fix
appeared in).

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com

On Wed, October 19, 2005 8:13 am, Nilsson Ulf /Konsult said:
> Hi!
>
> I'm trying to add a compression filter,
> http://archive.moreservlets.com/Filter-Code/filters/WEB-INF/classes/more
> servlets/filters/CompressionFilter.java
> To my web-app.
> I want the filter to compress everything that the action servlet returns
> (forwards). (mapping = *.do)
>
> However I can't get this to work. Pages just return empty.
> (the filter works for *.jsp etc)
>
> I'm using Struts 1.2.4 and a servlet 2.3 container (Sybase EAServer).
>
>
> Has anyone out there successfully used compression filters with struts?
>
> TIA,
> Ulf Nilsson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org