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