src/main/webapp/WEB-INF/dynamic_fragments/error.jsp

changeset 53
6a8498291606
parent 47
57cfb94ab99f
child 55
1a3b998afba7
equal deleted inserted replaced
52:67a02e79b7a1 53:6a8498291606
30 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 30 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
31 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 31 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
32 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 32 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
33 33
34 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}" /> 34 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}" />
35 <c:set scope="page" var="errorCode" value="${requestScope[ErrorModule.REQ_ATTR_ERROR_CODE]}"/> 35 <c:set scope="page" var="errorCode" value="${requestScope['javax.servlet.error.status_code']}"/>
36 <c:set scope="page" var="returnLink" value="${requestScope[ErrorModule.REQ_ATTR_RETURN_LINK]}"/> 36 <c:set scope="page" var="returnLink" value="${requestScope[ErrorModule.REQ_ATTR_RETURN_LINK]}"/>
37 37
38 <div id="error-page"> 38 <div id="error-page">
39 <h1><fmt:message key="h1"/></h1> 39 <h1><fmt:message key="h1"/></h1>
40 <table> 40 <table>
41 <tr> 41 <tr>
42 <th><fmt:message key="errorCode"/>:</th> 42 <th><fmt:message key="errorCode"/>:</th>
43 <td>${errorCode}</td> 43 <td>${errorCode} - <fmt:message key="code.${errorCode}" /></td>
44 </tr> 44 </tr>
45 <tr> 45 <tr>
46 <th><fmt:message key="errorMessage" />:</th> 46 <th><fmt:message key="errorMessage" />:</th>
47 <td><fmt:message key="errorMessage.${errorCode}" /></td> 47 <td><c:out value="${requestScope['javax.servlet.error.message']}"/></td>
48 </tr> 48 </tr>
49 <tr> 49 <tr>
50 <th><fmt:message key="errorTimestamp" />:</th> 50 <th><fmt:message key="errorTimestamp" />:</th>
51 <td><fmt:formatDate type="both" value="<%= new java.util.Date()%>"/></td> 51 <td><fmt:formatDate type="both" value="<%= new java.util.Date()%>"/></td>
52 </tr> 52 </tr>

mercurial