You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David LAGARDERE <dl...@yahoo.fr> on 2002/10/15 23:09:33 UTC

Using Servlet Filters

Hello.

Does anybody know how to configure a filter
for Cocoon servlet ? My goal is to zip
the output with a CompressionFilter, as documented
in Tomcat 4.0 examples.
I'm trying to put this code in mu web.xml descriptor
but it does nothing at all...

 <filter>
   <filter-name>Compression Filter</filter-name>
  
<filter-class>compressionFilters.CompressionFilter</filter-class>
   <init-param>
     <param-name>compressionThreshold</param-name>
     <param-value>10</param-value>
   </init-param>
  </filter>

 <filter-mapping>
   <filter-name>Compression Filter</filter-name>
   <url-pattern>/*.txt</url-pattern>
 </filter-mapping>


Any help would be more than welcome !

Thanks.

David LAGARDERE

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>