Skip to content

Commit

Permalink
Add CharacterEncodingFilter in web.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
nhenry committed Jan 30, 2014
1 parent db72a8a commit cdc8670
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion esup-opi-web-jsf-servlet/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,22 @@
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>


<filter>
<filter-name>encoding-filter</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>
<display-name>Hibernate Filter</display-name>
<filter-name>Hibernate Filter</filter-name>
Expand Down

0 comments on commit cdc8670

Please sign in to comment.