1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app xmlns="http://java.sun.com/xml/ns/javaee"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
7 <display-name>website</display-name>
9 <!-- Context Configuration locations for Spring XML files -->
12 <param-name>contextConfigLocation</param-name>
14 classpath:/spring/mvc.xml
19 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
26 <filter-name>characterEncodingFilter</filter-name>
27 <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
29 <param-name>encoding</param-name>
30 <param-value>UTF-8</param-value>
33 <param-name>forceEncoding</param-name>
34 <param-value>true</param-value>
39 <filter-name>characterEncodingFilter</filter-name>
40 <url-pattern>/*</url-pattern>
44 <!-- Handles all requests into the application -->
47 <servlet-name>Dispatcher Servlet - Website</servlet-name>
48 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
50 <param-name>contextConfigLocation</param-name>
54 <load-on-startup>1</load-on-startup>
58 <servlet-name>Dispatcher Servlet - Website</servlet-name>
59 <url-pattern>/</url-pattern>