I have created a simple
JSP using JSTL (see below) and it appears that ${"expression"} expressions are not evaluating correctly. It just prints out the entire expression. I have the latest jstl.jar and standard.jar. Also the other JSTL tags seem to be working (i.e. <c:out). It seems as if the EL expression is not being evaluated.
I am using
Tomcat 5.5.
Any help would be appreciated.
Bill
CODE:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head><title>Request header display</title></head>
<body>
<h2>Here are all the Request Headers</h2>
<%-- 'header' represents a java.util.Map type holding request-header names and values --%>
<c:forEach var="reqHead" items="${header}">
<strong><c:out value=
"${reqHead.key}"/></strong>: <c:out value="${reqHead.value}"/><br />
</c:forEach>
</body>
</html>
OUTPUT:
${reqHead.key}: ${reqHead.value}