<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
  <display-name>M-Care Plus</display-name>
  <listener>
    <listener-class>com.dbs.mplus.framework.listener.MPlusServletContextListener</listener-class>
  </listener>
  <listener>
    <listener-class>com.dbs.mplus.framework.listener.MPlusSessionListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>spring</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
      <param-name>contextConfigLocation</param-name>
       <!-- <param-value>/WEB-INF/config/spring/spring-context-local.xml</param-value> -->
       <param-value>/WEB-INF/config/spring/spring-context-${param.deploy.target}.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>spring</servlet-name>
    <url-pattern>*.page</url-pattern>
    <url-pattern>*.json</url-pattern>
    <url-pattern>*.ext</url-pattern>
  </servlet-mapping>
  <filter>
    <filter-name>interContextFilter</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    <init-param>
      <param-name>contextAttribute</param-name>
      <param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring</param-value>
    </init-param>
  </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>
  </filter>
  <filter-mapping>
    <filter-name>interContextFilter</filter-name>
    <url-pattern>*.page</url-pattern>
    <url-pattern>*.json</url-pattern>
    <url-pattern>*.ext</url-pattern>
  </filter-mapping>
  <filter-mapping>
    <filter-name>encodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <error-page>
    <error-code>404</error-code>
    <location>/WEB-INF/template/error404.jsp</location>
  </error-page>
  <error-page>
    <error-code>500</error-code>
    <location>/WEB-INF/template/error500.jsp</location>
  </error-page>
  <error-page>
    <error-code>409</error-code>
    <location>/WEB-INF/template/error409.jsp</location>
  </error-page>
  <welcome-file-list>
    <welcome-file>index.page</welcome-file>
  </welcome-file-list>
  <session-config>
    <session-timeout>15</session-timeout>
  </session-config>
  <mime-mapping>
    <extension>svg</extension>
    <mime-type>image/svg+xml</mime-type>
  </mime-mapping>
  <mime-mapping>
    <extension>svgz</extension>
    <mime-type>image/svg+xml</mime-type>
  </mime-mapping>
</web-app>