Author: kkolinko
Date: Fri Jan 6 14:47:30 2012
New Revision: 1228210
URL: http://svn.apache.org/viewvc?rev=1228210&view=rev
Log:
CTR: comment
Add sample configuration for SetCharacterEncodingFilter to the default web.xml
Modified:
tomcat/tc5.5.x/trunk/container/catalina/src/conf/web.xml
Modified: tomcat/tc5.5.x/trunk/container/catalina/src/conf/web.xml
URL:
http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/catalina/src/conf/web.xml?rev=1228210&r1=1228209&r2=1228210&view=diff
==============================================================================
--- tomcat/tc5.5.x/trunk/container/catalina/src/conf/web.xml (original)
+++ tomcat/tc5.5.x/trunk/container/catalina/src/conf/web.xml Fri Jan 6
14:47:30 2012
@@ -404,6 +404,19 @@
<!-- ================== Built In Filter Definitions ===================== -->
+ <!-- A filter that sets character encoding that is used to decode -->
+ <!-- parameters in a POST request -->
+<!--
+ <filter>
+ <filter-name>setCharacterEncodingFilter</filter-name>
+
<filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
+ <init-param>
+ <param-name>encoding</param-name>
+ <param-value>UTF-8</param-value>
+ </init-param>
+ </filter>
+-->
+
<!-- A filter that triggers request parameters parsing and rejects the -->
<!-- request if some parameters were skipped because of parsing errors or -->
<!-- request size limitations. -->
@@ -480,6 +493,14 @@
<!-- ==================== Built In Filter Mappings ====================== -->
+ <!-- The mapping for the Set Character Encoding Filter -->
+<!--
+ <filter-mapping>
+ <filter-name>setCharacterEncodingFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+-->
+
<!-- The mapping for the Failed Request Filter -->
<!--
<filter-mapping>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]