From c81724d9a871f360c102a90de1bad9cd556ec0ca Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed>
Date: Sat, 07 Dec 2019 14:00:25 +0000
Subject: [PATCH] .

---
 webapps/ROOT/stile.css       |   17 ++---------------
 webapps/ROOT/fehler.jsp      |    4 ++--
 readme.md                    |   23 +++++++++++++++++++++++
 webapps/ROOT/WEB-INF/web.xml |   16 ++++++++++++++++
 4 files changed, 43 insertions(+), 17 deletions(-)

diff --git a/readme.md b/readme.md
index ccb5eed..b68bce2 100644
--- a/readme.md
+++ b/readme.md
@@ -30,3 +30,26 @@
 ## ROOT Context
 
 Der Inhalt für `http://localhost:8080/` liegt in `CATALINA_BASE/webapps/ROOT`.
+
+### Fehler-Seiten
+
+Der Deployment Descriptor des ROOT Context, die Datei `CATALINA_BASE/webapps/ROOT/WEB-INF/web.xml`, enthält u.a. eine Deklaration von Standardfehlerseiten. Das sorgt im Fall eines Fehlers für die Anzeige einer neutralen Seite.
+
+```
+<error-page>
+  <exception-type>java.lang.Throwable</exception-type>
+  <location>/fehler.html</location>
+</error-page>
+<error-page>
+  <error-code>403</error-code>
+  <location>/nicht-erlaubt.html</location>
+</error-page>
+<error-page>
+  <error-code>404</error-code>
+  <location>/fehler.html</location>
+</error-page>
+<error-page>
+  <error-code>500</error-code>
+  <location>/fehler.html</location>
+</error-page>
+```
diff --git a/webapps/ROOT/WEB-INF/web.xml b/webapps/ROOT/WEB-INF/web.xml
index b7eb294..866b57d 100644
--- a/webapps/ROOT/WEB-INF/web.xml
+++ b/webapps/ROOT/WEB-INF/web.xml
@@ -7,11 +7,27 @@
       30
     </session-timeout>
   </session-config>
+
+  <!-- Willkommensseiten -->
   <welcome-file-list>
     <welcome-file>index.html</welcome-file>
   </welcome-file-list>
+
+  <!-- Fehlerseiten -->
+  <error-page>
+    <exception-type>java.lang.Throwable</exception-type>
+    <location>/fehler.jsp</location>
+  </error-page>
+  <error-page>
+    <error-code>403</error-code>
+    <location>/nicht-erlaubt.html</location>
+  </error-page>
   <error-page>
     <error-code>404</error-code>
     <location>/fehler.jsp</location>
   </error-page>
+  <error-page>
+    <error-code>500</error-code>
+    <location>/fehler.jsp</location>
+  </error-page>
 </web-app>
diff --git a/webapps/ROOT/fehler.jsp b/webapps/ROOT/fehler.jsp
index 69ef39f..5ccedb2 100644
--- a/webapps/ROOT/fehler.jsp
+++ b/webapps/ROOT/fehler.jsp
@@ -5,11 +5,11 @@
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-	<meta name="viewport" content="width=device-width">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <style>
     body {
       font-family:Arial,Helvetica,sans-serif;
-      font-size:10pt;
+      font-size:12pt;
     }
   </style>
   <title>Fehler</title>
diff --git a/webapps/ROOT/stile.css b/webapps/ROOT/stile.css
index 49c8442..ad7b907 100644
--- a/webapps/ROOT/stile.css
+++ b/webapps/ROOT/stile.css
@@ -1,18 +1,5 @@
 
 body {
-    font-size: 12pt;
-}
-
-h1 {
-  font-size: 2.2em;
-}
-
-h3 {
-  font-size: 1.2em;
-}
-
-.inhalt {
-  display: flex;
-  flex-direction: row;
-  padding-left: 3em;
+  font-family:Arial,Helvetica,sans-serif;
+  font-size: 12pt;
 }

--
Gitblit v1.9.3