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

changeset 53
6a8498291606
parent 47
57cfb94ab99f
child 55
1a3b998afba7
--- a/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Sat May 16 15:11:07 2020 +0200
+++ b/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Sat May 16 15:45:06 2020 +0200
@@ -32,7 +32,7 @@
 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
 
 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}" />
-<c:set scope="page" var="errorCode" value="${requestScope[ErrorModule.REQ_ATTR_ERROR_CODE]}"/>
+<c:set scope="page" var="errorCode" value="${requestScope['javax.servlet.error.status_code']}"/>
 <c:set scope="page" var="returnLink" value="${requestScope[ErrorModule.REQ_ATTR_RETURN_LINK]}"/>
 
 <div id="error-page">
@@ -40,11 +40,11 @@
     <table>
         <tr>
             <th><fmt:message key="errorCode"/>:</th>
-            <td>${errorCode}</td>
+            <td>${errorCode} - <fmt:message key="code.${errorCode}" /></td>
         </tr>
         <tr>
             <th><fmt:message key="errorMessage" />:</th>
-            <td><fmt:message key="errorMessage.${errorCode}" /></td>
+            <td><c:out value="${requestScope['javax.servlet.error.message']}"/></td>
         </tr>
         <tr>
             <th><fmt:message key="errorTimestamp" />:</th>

mercurial