CTR: comment
Add sample configuration for SetCharacterEncodingFilter to the default web.xml
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc5.5.x/trunk@1228210 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/container/catalina/src/conf/web.xml b/container/catalina/src/conf/web.xml
index 79805b6..fd3bea1 100644
--- a/container/catalina/src/conf/web.xml
+++ b/container/catalina/src/conf/web.xml
@@ -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>