fix Jakarta EE request attribute names

Thu, 29 Dec 2022 15:12:25 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 29 Dec 2022 15:12:25 +0100
changeset 261
1467d182cfe3
parent 260
fb2ae2d63a56
child 262
c357c4e69b9e

fix Jakarta EE request attribute names

src/main/webapp/WEB-INF/jsp/error.jsp file | annotate | diff | comparison | revisions
--- a/src/main/webapp/WEB-INF/jsp/error.jsp	Thu Dec 29 15:04:21 2022 +0100
+++ b/src/main/webapp/WEB-INF/jsp/error.jsp	Thu Dec 29 15:12:25 2022 +0100
@@ -31,7 +31,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['javax.servlet.error.status_code']}"/>
+<c:set scope="page" var="errorCode" value="${requestScope['jakarta.servlet.error.status_code']}"/>
 <c:set scope="page" var="returnLink" value="${requestScope[Constants.REQ_ATTR_REFERER]}"/>
 
 <div id="error-page">
@@ -43,7 +43,7 @@
         </tr>
         <tr>
             <th><fmt:message key="error.message"/>:</th>
-            <td><c:out value="${requestScope['javax.servlet.error.message']}"/></td>
+            <td><c:out value="${requestScope['jakarta.servlet.error.message']}"/></td>
         </tr>
         <tr>
             <th><fmt:message key="error.timestamp"/>:</th>

mercurial