From: Kai Moritz Date: Tue, 28 Jan 2014 16:08:28 +0000 (+0100) Subject: Fehler-Seiten angelegt und zugehörige Test-Links aufgenommen X-Git-Tag: thymeroot-2.0.0~127 X-Git-Url: https://juplo.de/gitweb/?p=website;a=commitdiff_plain;h=0bba0bc774c186f975f2f39697006a65f78852e9 Fehler-Seiten angelegt und zugehörige Test-Links aufgenommen --- 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 +