Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | <?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> |
Ittay Stern | 5f45846 | 2019-07-11 12:08:03 +0300 | [diff] [blame] | 23 | <url-pattern>/app/ui/</url-pattern> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 24 | </servlet-mapping> |
| 25 | |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 26 | <!-- |
| 27 | All the files under the paths below are served as static files, using |
| 28 | tomcat's `default` servlet. This overrides the `vid-webpack-master` |
| 29 | url-pattern. |
| 30 | The filter `charset-to-utf8-filter` adds "charset=UTF-8" to these files |
| 31 | content type, as the default content-type is platform-dependant (which |
| 32 | is not ok for Windows stations). |
| 33 | --> |
| 34 | <servlet-mapping> |
| 35 | <servlet-name>default</servlet-name> |
Ittay Stern | 5f45846 | 2019-07-11 12:08:03 +0300 | [diff] [blame] | 36 | <url-pattern>/app/ui/*</url-pattern> |
Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 37 | </servlet-mapping> |
| 38 | |
| 39 | <filter> |
| 40 | <filter-name>charset-to-utf8-filter</filter-name> |
| 41 | <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
| 42 | <init-param> |
| 43 | <param-name>encoding</param-name> |
| 44 | <param-value>UTF-8</param-value> |
| 45 | </init-param> |
| 46 | <init-param> |
| 47 | <param-name>forceEncoding</param-name> |
| 48 | <param-value>true</param-value> |
| 49 | </init-param> |
| 50 | </filter> |
| 51 | |
| 52 | <filter-mapping> |
| 53 | <filter-name>charset-to-utf8-filter</filter-name> |
| 54 | <url-pattern>/app/ui/*</url-pattern> |
| 55 | </filter-mapping> |
| 56 | |
| 57 | </web-app> |