diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-07-10 15:57:37 +0300 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-07-10 15:57:37 +0300 |
commit | ff76b5ed0aa91d5fdf9dc4f95e8b20f91ed9d072 (patch) | |
tree | aae42404a93fdffdd16ff050eaa28129959f7577 /vid-webpack-master/src/WEB-INF/web.xml | |
parent | c72d565bb58226b20625b2bce5f0019046bee649 (diff) |
New Angular UI from 1806
Change-Id: I39c160db0e0a6ec2e587ccf007ee1b23c6a08666
Issue-ID: VID-208
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-webpack-master/src/WEB-INF/web.xml')
-rw-r--r-- | vid-webpack-master/src/WEB-INF/web.xml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/vid-webpack-master/src/WEB-INF/web.xml b/vid-webpack-master/src/WEB-INF/web.xml new file mode 100644 index 000000000..a4152daaa --- /dev/null +++ b/vid-webpack-master/src/WEB-INF/web.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> + + <!-- This is a stub web.xml in the common area --> + <display-name>vid-ebpack-master</display-name> + + <!-- + `vid-webpack-master` servlet and it's servlet mapping below, serves + Angular's index.html for any requests like the following, letting + the JavaScript router do its magic: + * /vid/app/ui/ + * /vid/app/ui/servicePlanning + * /vid/app/ui/browseSdc + --> + <servlet> + <servlet-name>vid-webpack-master</servlet-name> + <jsp-file>/app/ui/index.html</jsp-file> + </servlet> + + <servlet-mapping> + <servlet-name>vid-webpack-master</servlet-name> + <url-pattern>/app/ui/*</url-pattern> + </servlet-mapping> + + + <!-- + All the files under the paths below are served as static files, using + tomcat's `default` servlet. This overrides the `vid-webpack-master` + url-pattern. + The filter `charset-to-utf8-filter` adds "charset=UTF-8" to these files + content type, as the default content-type is platform-dependant (which + is not ok for Windows stations). + --> + <servlet-mapping> + <servlet-name>default</servlet-name> + <url-pattern>/app/ui/css/*</url-pattern> + <url-pattern>/app/ui/fonts/*</url-pattern> + <url-pattern>/app/ui/img/*</url-pattern> + <url-pattern>/app/ui/js/*</url-pattern> + </servlet-mapping> + + <filter> + <filter-name>charset-to-utf8-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-mapping> + <filter-name>charset-to-utf8-filter</filter-name> + <url-pattern>/app/ui/*</url-pattern> + </filter-mapping> + +</web-app> |