access getClass() method in EL with bracket notation (otherwise more recent EL parsers will reject the expression)

Sat, 16 May 2020 17:22:02 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 16 May 2020 17:22:02 +0200
changeset 55
1a3b998afba7
parent 54
77e01cda5a40
child 56
11b1e7153496

access getClass() method in EL with bracket notation (otherwise more recent EL parsers will reject the expression)

src/main/webapp/WEB-INF/dynamic_fragments/error.jsp file | annotate | diff | comparison | revisions
--- a/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Sat May 16 16:14:10 2020 +0200
+++ b/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Sat May 16 17:22:02 2020 +0200
@@ -54,7 +54,7 @@
         <c:if test="${not empty exception}">
         <tr>
             <th><fmt:message key="errorExceptionText" />:</th>
-            <td>${exception.class.name} - ${exception.message}</td>
+            <td>${exception['class'].name} - ${exception.message}</td>
         </tr>    
         </c:if>
         <c:if test="${fn:startsWith(returnLink, baseHref)}">

mercurial