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
     1.1 --- a/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Sat May 16 16:14:10 2020 +0200
     1.2 +++ b/src/main/webapp/WEB-INF/dynamic_fragments/error.jsp	Sat May 16 17:22:02 2020 +0200
     1.3 @@ -54,7 +54,7 @@
     1.4          <c:if test="${not empty exception}">
     1.5          <tr>
     1.6              <th><fmt:message key="errorExceptionText" />:</th>
     1.7 -            <td>${exception.class.name} - ${exception.message}</td>
     1.8 +            <td>${exception['class'].name} - ${exception.message}</td>
     1.9          </tr>    
    1.10          </c:if>
    1.11          <c:if test="${fn:startsWith(returnLink, baseHref)}">

mercurial