From c3e010989a628b82161763cb0eab7a2d786304a3 Mon Sep 17 00:00:00 2001
From: ulrich <not disclosed>
Date: Sun, 15 Jan 2017 10:11:50 +0000
Subject: [PATCH] Umstellung auf neutrale JS-Verweise

---
 web/WEB-INF/web.xml |   35 ++++++++++++++++++++++++++---------
 1 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml
index c45708f..4c06470 100644
--- a/web/WEB-INF/web.xml
+++ b/web/WEB-INF/web.xml
@@ -18,7 +18,7 @@
         <url-pattern>/svc/*</url-pattern>
     </filter-mapping>
     <listener>
-        <listener-class>de.uhilger.um.App</listener-class>
+        <listener-class>de.uhilger.um.web.Initialiser</listener-class>
     </listener>
     <servlet>
         <servlet-name>TransitServlet</servlet-name>
@@ -28,21 +28,38 @@
             <param-value>de.uhilger.um.api</param-value>
         </init-param>
     </servlet>
-    <servlet>
-        <servlet-name>TestServlet</servlet-name>
-        <jsp-file>/show.jsp</jsp-file>
-    </servlet>
     <servlet-mapping>
         <servlet-name>TransitServlet</servlet-name>
         <url-pattern>/api</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>TestServlet</servlet-name>
-        <url-pattern>/test/*</url-pattern>
     </servlet-mapping>
     <session-config>
         <session-timeout>
             30
         </session-timeout>
     </session-config>
+    <security-constraint>
+        <display-name>nutzerAdminConstraint</display-name>
+        <web-resource-collection>
+            <web-resource-name>nutzerAdmin</web-resource-name>
+            <description>Nutzer-Administration</description>
+            <url-pattern>/ui/*</url-pattern>
+            <url-pattern>/svc/*</url-pattern>
+            <url-pattern>/api/*</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <description>nutzerAdminAuthContraint</description>
+            <role-name>nutzerAdmin</role-name>
+        </auth-constraint>
+    </security-constraint>
+    <login-config>
+        <auth-method>FORM</auth-method>
+        <form-login-config>
+            <form-login-page>/login_form.html</form-login-page>
+            <form-error-page>/login_error.jsp</form-error-page>
+        </form-login-config>
+    </login-config>
+    <security-role>
+        <description/>
+        <role-name>nutzerAdmin</role-name>
+    </security-role>
 </web-app>

--
Gitblit v1.9.3