summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2009-09-02 11:25:55 +0000
committerMaria Odea B. Ching <oching@apache.org>2009-09-02 11:25:55 +0000
commite9da0e496b80451a57b4a49f0b41d593acae3c7a (patch)
treecc91379f907ddba06de42df846826897045bfa1e
parent6ad5da6f8d8f41c723d2bd9a522661a053e370a8 (diff)
downloadarchiva-e9da0e496b80451a57b4a49f0b41d593acae3c7a.tar.gz
archiva-e9da0e496b80451a57b4a49f0b41d593acae3c7a.zip
[MRM-1243] Encoding issues with Archiva UI: add Spring CharacterEncodingFilter
submitted by Julien Henry o add filter to force utf-8 encoding git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@810457 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml
index 11364cb48..b4fb373d0 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/web.xml
@@ -40,6 +40,24 @@
<filter-name>webwork</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
+
+ <filter>
+ <filter-name>encodingFilter</filter-name>
+ <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
+ <init-param>
+ <param-name>encoding</param-name>
+ <param-value>UTF-8</param-value>
+ </init-param>
+ <init-param>
+ <param-name>forceEncoding</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>encodingFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
<!-- this must be before the sitemesh filter -->
<filter-mapping>