blob: a4152daaa462e459f42445b44132c52f34d0947a [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001<?xml version="1.0" encoding="UTF-8"?>
2<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
4
5 <!-- This is a stub web.xml in the common area -->
6 <display-name>vid-ebpack-master</display-name>
7
8 <!--
9 `vid-webpack-master` servlet and it's servlet mapping below, serves
10 Angular's index.html for any requests like the following, letting
11 the JavaScript router do its magic:
12 * /vid/app/ui/
13 * /vid/app/ui/servicePlanning
14 * /vid/app/ui/browseSdc
15 -->
16 <servlet>
17 <servlet-name>vid-webpack-master</servlet-name>
18 <jsp-file>/app/ui/index.html</jsp-file>
19 </servlet>
20
21 <servlet-mapping>
22 <servlet-name>vid-webpack-master</servlet-name>
23 <url-pattern>/app/ui/*</url-pattern>
24 </servlet-mapping>
25
26
27 <!--
28 All the files under the paths below are served as static files, using
29 tomcat's `default` servlet. This overrides the `vid-webpack-master`
30 url-pattern.
31 The filter `charset-to-utf8-filter` adds "charset=UTF-8" to these files
32 content type, as the default content-type is platform-dependant (which
33 is not ok for Windows stations).
34 -->
35 <servlet-mapping>
36 <servlet-name>default</servlet-name>
37 <url-pattern>/app/ui/css/*</url-pattern>
38 <url-pattern>/app/ui/fonts/*</url-pattern>
39 <url-pattern>/app/ui/img/*</url-pattern>
40 <url-pattern>/app/ui/js/*</url-pattern>
41 </servlet-mapping>
42
43 <filter>
44 <filter-name>charset-to-utf8-filter</filter-name>
45 <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
46 <init-param>
47 <param-name>encoding</param-name>
48 <param-value>UTF-8</param-value>
49 </init-param>
50 <init-param>
51 <param-name>forceEncoding</param-name>
52 <param-value>true</param-value>
53 </init-param>
54 </filter>
55
56 <filter-mapping>
57 <filter-name>charset-to-utf8-filter</filter-name>
58 <url-pattern>/app/ui/*</url-pattern>
59 </filter-mapping>
60
61</web-app>