| 26 --%> |
26 --%> |
| 27 <%@page pageEncoding="UTF-8" %> |
27 <%@page pageEncoding="UTF-8" %> |
| 28 <%@page import="de.uapcore.lightpit.modules.ErrorModule" %> |
28 <%@page import="de.uapcore.lightpit.modules.ErrorModule" %> |
| 29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
| 30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
| 31 |
31 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
| 32 <jsp:useBean id="exception" scope="request" type="java.lang.Throwable"/> |
|
| 33 |
32 |
| 34 <c:set scope="page" var="errorCode" value="${requestScope[ErrorModule.REQ_ATTR_ERROR_CODE]}"/> |
33 <c:set scope="page" var="errorCode" value="${requestScope[ErrorModule.REQ_ATTR_ERROR_CODE]}"/> |
| |
34 <c:set scope="page" var="returnLink" value="${requestScope[ErrorModule.REQ_ATTR_RETURN_LINK]}"/> |
| 35 |
35 |
| 36 <div id="error-page"> |
36 <div id="error-page"> |
| 37 <h1><fmt:message key="h1"/></h1> |
37 <h1><fmt:message key="h1"/></h1> |
| 38 <table> |
38 <table> |
| 39 <tr> |
39 <tr> |
| 46 </tr> |
46 </tr> |
| 47 <tr> |
47 <tr> |
| 48 <th><fmt:message key="errorTimestamp" />:</th> |
48 <th><fmt:message key="errorTimestamp" />:</th> |
| 49 <td><fmt:formatDate type="both" value="<%= new java.util.Date()%>"/></td> |
49 <td><fmt:formatDate type="both" value="<%= new java.util.Date()%>"/></td> |
| 50 </tr> |
50 </tr> |
| |
51 <%--@elvariable id="exception" type="java.lang.Exception"--%> |
| 51 <c:if test="${not empty exception}"> |
52 <c:if test="${not empty exception}"> |
| 52 <tr> |
53 <tr> |
| 53 <th><fmt:message key="errorExceptionText" />:</th> |
54 <th><fmt:message key="errorExceptionText" />:</th> |
| 54 <td>${exception.class.name} - ${exception.message}</td> |
55 <td>${exception.class.name} - ${exception.message}</td> |
| 55 </tr> |
56 </tr> |
| 56 </c:if> |
57 </c:if> |
| |
58 <c:if test="${fn:startsWith(returnLink, baseHref)}"> |
| |
59 <tr> |
| |
60 <th><fmt:message key="errorReturnLink" />:</th> |
| |
61 <td><a href="${returnLink}">${returnLink}</a></td> |
| |
62 </tr> |
| |
63 </c:if> |
| 57 </table> |
64 </table> |
| 58 </div> |
65 </div> |