2 Document : errorHandler
3 Created on : 05.08.2015, 12:06:39
7 <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
8 <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
9 <%@page import="java.io.PrintWriter"%>
10 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
11 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
12 <jsp:useBean id="date" class="java.util.Date" />
15 // Init application instance
16 PizzaApplication app = PizzaServiceApplication.getInstance(application);
18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
19 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
21 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
22 <link rel="stylesheet" href="style.css" type="text/css"/>
23 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Fehler</title>
28 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Fehler</h1>
32 <jsp:include page="/static/menu.jsp" flush="true" />
35 <div id="content_outer">
36 <div id="content_title">
37 <h2>An error occured:</h2>
41 Unfortunately an unexpected error has occurred. Below you can find the error details.
43 <li>Timestamp: <fmt:formatDate value="${date}" type="both" dateStyle="long" timeStyle="long" /></li>
44 <li>Action: <c:out value="${requestScope['javax.servlet.forward.request_uri']}" /></li>
45 <li>Exception: <c:out value="${requestScope['javax.servlet.error.exception']}" /></li>
46 <li>Message: <c:out value="${requestScope['javax.servlet.error.message']}" /></li>
47 <li>Status code: <c:out value="${requestScope['javax.servlet.error.status_code']}" /></li>
48 <li>User agent: <c:out value="${header['user-agent']}" /></li>