From 3c1480dfafaa14c4a1780ad2a70326e7a36a9b65 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Tue, 17 May 2011 16:56:34 +0200
Subject: [PATCH] logout-Link

---
 hsarweb/conf/WEB-INF/web.xml |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/hsarweb/conf/WEB-INF/web.xml b/hsarweb/conf/WEB-INF/web.xml
index fc6e8d0..efabea9 100644
--- a/hsarweb/conf/WEB-INF/web.xml
+++ b/hsarweb/conf/WEB-INF/web.xml
@@ -7,7 +7,7 @@
 
 	<context-param>
 		<param-name>serverName</param-name>
-		<param-value>http://agnes.ostwall195.de:8080</param-value>
+		<param-value>https://@ADMIN_HOST@:@ADMIN_PORT@</param-value>
 	</context-param>
 	<context-param>
 		<param-name>backendURL</param-name>
@@ -68,6 +68,15 @@
     </filter-mapping>
 
 	<servlet>
+		<servlet-name>Logout Servlet</servlet-name>
+		<servlet-class>de.hsadmin.logout.LogoutServlet</servlet-class>
+		<init-param>
+			<param-name>redirect</param-name>
+			<param-value>https://@LOGIN_HOST@:@LOGIN_PORT@/cas/logout</param-value>
+		</init-param>
+	</servlet>
+	
+	<servlet>
 		<servlet-name>HSAdmin Web</servlet-name>
 		<servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
 		<init-param>
@@ -76,10 +85,17 @@
 			<param-value>de.hsadmin.web.MainApplication</param-value>
 		</init-param>
 	</servlet>
+	
+	<servlet-mapping>
+		<servlet-name>Logout Servlet</servlet-name>
+		<url-pattern>/logout</url-pattern>
+	</servlet-mapping>
+	
 	<servlet-mapping>
 		<servlet-name>HSAdmin Web</servlet-name>
 		<url-pattern>/*</url-pattern>
 	</servlet-mapping>
+	
 	<welcome-file-list>
 		<welcome-file>index.html</welcome-file>
 		<welcome-file>index.jsp</welcome-file>

--
Gitblit v1.9.3