From 0bba0bc774c186f975f2f39697006a65f78852e9 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 28 Jan 2014 17:08:28 +0100 Subject: [PATCH] =?utf8?q?Fehler-Seiten=20angelegt=20und=20zugeh=C3=B6rige?= =?utf8?q?=20Test-Links=20aufgenommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/404.jsp | 1 + src/main/webapp/WEB-INF/error.jsp | 36 +++++++++++++++++++ .../WEB-INF/templates/test/experimente.jsp | 4 ++- src/main/webapp/WEB-INF/views/test/error.jsp | 12 +++++++ src/main/webapp/WEB-INF/web.xml | 3 ++ 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 src/main/webapp/WEB-INF/error.jsp create mode 100644 src/main/webapp/WEB-INF/views/test/error.jsp diff --git a/src/main/webapp/WEB-INF/404.jsp b/src/main/webapp/WEB-INF/404.jsp index 11c449fe..92187072 100644 --- a/src/main/webapp/WEB-INF/404.jsp +++ b/src/main/webapp/WEB-INF/404.jsp @@ -1,6 +1,7 @@ <%@page contentType="text/html;charset=UTF-8"%> <%@page pageEncoding="UTF-8"%> <%@page session="false" %> +<%@page isErrorPage="true" %> <%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %> <%@taglib uri="http://www.springframework.org/tags" prefix="s"%> diff --git a/src/main/webapp/WEB-INF/error.jsp b/src/main/webapp/WEB-INF/error.jsp new file mode 100644 index 00000000..5644494b --- /dev/null +++ b/src/main/webapp/WEB-INF/error.jsp @@ -0,0 +1,36 @@ +<%@page contentType="text/html;charset=UTF-8"%> +<%@page pageEncoding="UTF-8"%> +<%@page session="false" %> +<%@page isErrorPage="true" %> +<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %> +<%@taglib uri="http://www.springframework.org/tags" prefix="s"%> + + + + + +
  • Home
  • +
  • !#%*§
  • +
    + + x + # + * + % + § + ? + ? + ? + ? +

    We do not know, what happend.

    +

    But we can tell you: WE ARE SORRY!

    +

    Really.

    +
      +
    • ${pageContext.errorData.statusCode}
    • +
    • ${pageContext.errorData.requestURI}
    • +
    • ${pageContext.errorData.servletName}
    • +
    • ${pageContext.errorData.throwable}
    • +
    +
    + +
    diff --git a/src/main/webapp/WEB-INF/templates/test/experimente.jsp b/src/main/webapp/WEB-INF/templates/test/experimente.jsp index 91608d36..cb00a9c1 100644 --- a/src/main/webapp/WEB-INF/templates/test/experimente.jsp +++ b/src/main/webapp/WEB-INF/templates/test/experimente.jsp @@ -3,10 +3,12 @@ <%@page session="false" %> <%@taglib uri="http://www.springframework.org/tags" prefix="s"%> -

    HTML-Elemente

    +

    HTML-Elemente / spezielle Seiten

    Layout-Grenzfälle

      diff --git a/src/main/webapp/WEB-INF/views/test/error.jsp b/src/main/webapp/WEB-INF/views/test/error.jsp new file mode 100644 index 00000000..5e8e4e1f --- /dev/null +++ b/src/main/webapp/WEB-INF/views/test/error.jsp @@ -0,0 +1,12 @@ +<%@page contentType="text/html;charset=UTF-8"%> +<%@page pageEncoding="UTF-8"%> +<%@page session="false" %> +<%@taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %> +<%@taglib uri="http://www.springframework.org/tags" prefix="s"%> + + + + + <% Integer.parseInt("foo"); //throws an exception %> + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 6a618b8c..6eb68dab 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -62,5 +62,8 @@ 404 /WEB-INF/404.jsp + + /WEB-INF/error.jsp + -- 2.20.1