]> git.mxchange.org Git - pizzaservice-war.git/blob - web/errorHandler.jsp
Added footer for admin area + error include file "direct_call.jsp"
[pizzaservice-war.git] / web / errorHandler.jsp
1 <%-- 
2         Document   : errorHandler
3         Created on : 05.08.2015, 12:06:39
4         Author     : Roland Haeder
5 --%>
6
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" />
13
14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
15 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
16         <head>
17                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
18                 <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
19                 <title><%=PizzaServiceApplication.MAIN_TITLE%> - Fehler</title>
20         </head>
21
22         <body>
23                 <div id="header"> 
24                         <div id="title">
25                                 <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Fehler</h1>
26                         </div>
27                 </div>
28
29                 <jsp:include page="/static/menu.jsp" flush="true" />
30
31                 <div id="content_outer">
32                         <div id="content_title">
33                                 <h2>An error occured:</h2>
34                         </div>
35
36                         <div id="content">
37                                 Unfortunately an unexpected error has occurred. Below you can find the error details.
38                                 <ul>
39                                         <li>Timestamp: <fmt:formatDate value="${date}" type="both" dateStyle="long" timeStyle="long" /></li>
40                                         <li>Action: <c:out value="${requestScope['javax.servlet.forward.request_uri']}" /></li>
41                                         <li>Exception: <c:out value="${requestScope['javax.servlet.error.exception']}" /></li>
42                                         <li>Message: <c:out value="${requestScope['javax.servlet.error.message']}" /></li>
43                                         <li>Status code: <c:out value="${requestScope['javax.servlet.error.status_code']}" /></li>
44                                         <li>User agent: <c:out value="${header['user-agent']}" /></li>
45                                 </ul>
46                         </div>
47                 </div>
48
49                 <jsp:include page="/static/footer.jsp" flush="true" />
50         </body>
51 </html>