From 5ef7f0b3dccf1ce5c4f4271a2eaec5158615253d Mon Sep 17 00:00:00 2001 From: ulrich Date: Sun, 27 Dec 2020 13:41:55 +0000 Subject: [PATCH] JSPs entfernt --- web/WEB-INF/web.xml | 4 ++-- web/login_error.html | 14 ++++++++++++++ /dev/null | 25 ------------------------- web/logout.html | 3 +-- web/login_form.html | 6 +++--- web/ui/js/app.js | 2 +- 6 files changed, 21 insertions(+), 33 deletions(-) diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index e9200ee..92e09b8 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -97,8 +97,8 @@ <login-config> <auth-method>FORM</auth-method> <form-login-config> - <form-login-page>/login_form.jsp</form-login-page> - <form-error-page>/login_error.jsp</form-error-page> + <form-login-page>/login_form.html</form-login-page> + <form-error-page>/login_error.html</form-error-page> </form-login-config> </login-config> <security-role> diff --git a/web/login_error.html b/web/login_error.html new file mode 100644 index 0000000..368c900 --- /dev/null +++ b/web/login_error.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <link rel="stylesheet" type="text/css" href="/stile.css"> + <title>Fehler</title> + </head> + <body> + <p>Hoppla! Die Anmeldung hat nicht geklappt.</p> + + <p><a href="/">..zur Startseite</a></p> + </body> +</html> diff --git a/web/login_error.jsp b/web/login_error.jsp deleted file mode 100644 index 720fe3f..0000000 --- a/web/login_error.jsp +++ /dev/null @@ -1,25 +0,0 @@ -<%@page contentType="text/html" pageEncoding="ISO-8859-1"%> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/html4/loose.dtd"> - -<html> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <style> - body { - font-family:Arial,Helvetica,sans-serif; - font-size:10pt; - } - </style> - <title>Fehler</title> - <% - String url = request.getRequestURL().toString(); - url = url.substring(0, url.lastIndexOf("/")); - %> -</head> -<body> -<p>Hoppla! Die Anmeldung hat nicht geklappt.</p> - -<p>Klicken Sie <a href="<%=url%>">hier</a> um zur Hauptseite zu gelangen.</p> -</body> -</html> diff --git a/web/login_form.jsp b/web/login_form.html similarity index 79% rename from web/login_form.jsp rename to web/login_form.html index a20ca53..a59db9e 100644 --- a/web/login_form.jsp +++ b/web/login_form.html @@ -1,4 +1,4 @@ -<%@page contentType="text/html" pageEncoding="UTF-8"%> +<!DOCTYPE html> <!DOCTYPE html> <html lang="en"> <head> @@ -6,7 +6,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalabe=no"> <meta name="description" content=""> <meta name="author" content=""> - <link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/stile.css"> + <link rel="stylesheet" type="text/css" href="/stile.css"> <title>Anmeldung Nutzerverwaltung</title> </head> <body> @@ -16,7 +16,7 @@ <input name="j_username" type="text" class="form-control" placeholder="Benutzerkennung" required autofocus> <input name="j_password" type="password" class="form-control" placeholder="Kennwort" required> <button class="btn btn-lg button-primary btn-block" type="submit">Senden</button> - <p class="backlink"><a href="/">zurück zur Hauptseite</a></p> + <p class="backlink"><a href="/">zurück zur Hauptseite</a></p> </form> </div> </body> diff --git a/web/logout.jsp b/web/logout.html similarity index 75% rename from web/logout.jsp rename to web/logout.html index fb0965c..0954dfd 100644 --- a/web/logout.jsp +++ b/web/logout.html @@ -1,10 +1,9 @@ -<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/stile.css"> + <link rel="stylesheet" type="text/css" href="/stile.css"> <title>Abgemeldet</title> </head> <body> diff --git a/web/ui/js/app.js b/web/ui/js/app.js index 2f4f1f0..b953014 100644 --- a/web/ui/js/app.js +++ b/web/ui/js/app.js @@ -353,7 +353,7 @@ var u = '../pub' + m; self.http_get(u, function (resp) { //$('#userMenu').text('nicht angemeldet'); - window.location.href = '../logout.jsp'; + window.location.href = '../logout.html'; }); }; -- Gitblit v1.9.3