[pal-cvs 2783] [518] added FileUploadFilter

svnno****@sourc***** svnno****@sourc*****
2007年 9月 1日 (土) 08:46:48 JST


Revision: 518
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=518
Author:   shinsuke
Date:     2007-09-01 08:46:48 +0900 (Sat, 01 Sep 2007)

Log Message:
-----------
added FileUploadFilter

Modified Paths:
--------------
    pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/web.xml


-------------- next part --------------
Modified: pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/web.xml	2007-08-31 23:32:55 UTC (rev 517)
+++ pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/web.xml	2007-08-31 23:46:48 UTC (rev 518)
@@ -56,6 +56,18 @@
     </init-param>
   </filter>
   <filter>
+    <filter-name>FileUploadFilter</filter-name>
+    <filter-class>jp.sf.pal.jsf.filter.FileUploadFilter</filter-class>
+    <init-param>
+      <param-name>maxFileSize</param-name>
+      <param-value>20m</param-value>
+      <description>
+        Set the size limit for uploaded files. Format: 10 - 10 bytes 10k
+        - 10 KB 10m - 10 MB 1g - 1 GB
+      </description>
+    </init-param>
+  </filter>
+  <filter>
     <filter-name>s2filter</filter-name>
     <filter-class>org.seasar.framework.container.filter.S2ContainerFilter</filter-class>
   </filter>
@@ -77,6 +89,11 @@
     <filter-name>encodingfilter</filter-name>
     <url-pattern>*.html</url-pattern>
   </filter-mapping>
+  <filter-mapping>
+    <filter-name>FileUploadFilter</filter-name>
+    <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
+    <url-pattern>/view/*</url-pattern>
+  </filter-mapping>
   <!-- SERVLET DEV: BEGIN @@@
   <filter-mapping>
     <filter-name>facesdevfilter</filter-name>


pal-cvs メーリングリストの案内