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

changeset 180
009700915269
parent 74
91d1fc2a3a14
child 184
e8eecee6aadf
     1.1 --- a/src/main/webapp/WEB-INF/jsp/error.jsp	Tue Jan 05 19:19:31 2021 +0100
     1.2 +++ b/src/main/webapp/WEB-INF/jsp/error.jsp	Wed Jan 06 15:39:56 2021 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  <%-- 
     1.5  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     1.6  
     1.7 -Copyright 2018 Mike Becker. All rights reserved.
     1.8 +Copyright 2021 Mike Becker. All rights reserved.
     1.9  
    1.10  Redistribution and use in source and binary forms, with or without
    1.11  modification, are permitted provided that the following conditions are met:
    1.12 @@ -36,30 +36,30 @@
    1.13  <c:set scope="page" var="returnLink" value="${requestScope[ErrorModule.REQ_ATTR_RETURN_LINK]}"/>
    1.14  
    1.15  <div id="error-page">
    1.16 -    <h1><fmt:message key="h1"/></h1>
    1.17 +    <h1><fmt:message key="error.headline"/></h1>
    1.18      <table>
    1.19          <tr>
    1.20 -            <th><fmt:message key="errorCode"/>:</th>
    1.21 -            <td>${errorCode} - <fmt:message key="code.${errorCode}"/></td>
    1.22 +            <th><fmt:message key="error.code"/>:</th>
    1.23 +            <td>${errorCode} - <fmt:message key="error.code.${errorCode}"/></td>
    1.24          </tr>
    1.25          <tr>
    1.26 -            <th><fmt:message key="errorMessage"/>:</th>
    1.27 +            <th><fmt:message key="error.message"/>:</th>
    1.28              <td><c:out value="${requestScope['javax.servlet.error.message']}"/></td>
    1.29          </tr>
    1.30          <tr>
    1.31 -            <th><fmt:message key="errorTimestamp"/>:</th>
    1.32 +            <th><fmt:message key="error.timestamp"/>:</th>
    1.33              <td><fmt:formatDate type="both" value="<%= new java.util.Date()%>"/></td>
    1.34          </tr>
    1.35          <%--@elvariable id="exception" type="java.lang.Exception"--%>
    1.36          <c:if test="${not empty exception}">
    1.37              <tr>
    1.38 -                <th><fmt:message key="errorExceptionText"/>:</th>
    1.39 +                <th><fmt:message key="error.exceptionText"/>:</th>
    1.40                  <td>${exception['class'].name} - ${exception.message}</td>
    1.41              </tr>
    1.42          </c:if>
    1.43          <c:if test="${fn:startsWith(returnLink, baseHref)}">
    1.44              <tr>
    1.45 -                <th><fmt:message key="errorReturnLink"/>:</th>
    1.46 +                <th><fmt:message key="error.returnLink"/>:</th>
    1.47                  <td><a href="${returnLink}">${returnLink}</a></td>
    1.48              </tr>
    1.49          </c:if>

mercurial