You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by da...@apache.org on 2006/06/30 16:20:19 UTC

svn commit: r418294 - /cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml

Author: danielf
Date: Fri Jun 30 07:20:18 2006
New Revision: 418294

URL: http://svn.apache.org/viewvc?rev=418294&view=rev
Log:
Declare and use the MultipartFilter for multipart MIME handling.

Modified:
    cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml

Modified: cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml?rev=418294&r1=418293&r2=418294&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml (original)
+++ cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml Fri Jun 30 07:20:18 2006
@@ -49,6 +49,19 @@
   <listener>
   	<listener-class>org.apache.cocoon.servlet.CocoonServletListener</listener-class>
   </listener>
+  
+  <!-- Servlet Filters ================================================ -->
+  
+  <!--+
+      | Declare a filter for multipart MIME handling
+      +-->
+      
+  <filter>
+  	<filter-name>CocoonMultipartFilter</filter-name>
+  	<display-name>Cocoon multipart filter</display-name>
+  	<description>Multipart MIME handling filter for Cocoon</description>
+  	<filter-class>org.apache.cocoon.servlet.multipart.MultipartFilter</filter-class>
+  </filter>
 
   <!-- Servlet Configuration ========================================== -->
 
@@ -77,6 +90,17 @@
     -->
     <load-on-startup>1</load-on-startup>
   </servlet>
+  
+  <!-- Filter mappings ================================================ -->
+  
+  <!--+
+      | Use the Cocoon multipart filter together with the Cocoon demo webapp
+      +-->
+      
+  <filter-mapping>
+  	<filter-name>CocoonMultipartFilter</filter-name>
+  	<servlet-name>Cocoon</servlet-name>
+  </filter-mapping>
 
   <!-- URL space mappings ============================================= -->