]> git.mxchange.org Git - pizzaservice-war.git/blob - web/errorHandler.jsp
feffab1677dd06c7ffece63c02130fbd5c5c61d3
[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.beans.PizzaBean"%>
8 <%@page import="org.mxchange.pizzaapplication.beans.PizzaServiceBean"%>
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 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
15 <c:set var="basePath" value="${pageContext.request.contextPath}" />
16
17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
19         <head>
20                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
21                 <link rel="stylesheet" href="${basePath}/style.css" type="text/css"/>
22                 <title>Pizza-Service - Fehler</title>
23         </head>
24
25         <body>
26                 <div id="header"> 
27                         <div id="title">
28                                 <h1>Pizza-Service - Fehler</h1>
29                         </div>
30                 </div>
31
32                 <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
33
34                 <div id="content_outer">
35                         <div id="content_title">
36                                 <h2>An error occured:</h2>
37                         </div>
38
39                         <div id="content">
40                                 Unfortunately an unexpected error has occurred. Below you can find the error details.
41                                 <ul>
42                                         <li>Timestamp: <fmt:formatDate value="${date}" type="both" dateStyle="long" timeStyle="long" /></li>
43                                         <li>Action: <c:out value="${requestScope['javax.servlet.forward.request_uri']}" /></li>
44                                         <li>Exception: <c:out value="${requestScope['javax.servlet.error.exception']}" /></li>
45                                         <li>Message: <c:out value="${requestScope['javax.servlet.error.message']}" /></li>
46                                         <li>Status code: <c:out value="${requestScope['javax.servlet.error.status_code']}" /></li>
47                                         <li>User agent: <c:out value="${header['user-agent']}" /></li>
48                                 </ul>
49                         </div>
50                 </div>
51
52                 <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
53         </body>
54 </html>