J
jsguru72
I am about to go crazy trying to figure out where I have gone wrong.
My original setup used JSF Facelets and a JavaBean in a JSP document
(XML). After I ran into problems, I chipped away all of the layers
until I narrowed the problem down to something related to the JSTL.
I now have the following very basic jsp file
-----------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
</head>
<body>
<c:set var="rowCounter" value="1" />
:<cut value="${rowCounter}" />:
</body>
</html>
-----------------------------------
I would expect the output to be
:1:
but instead I get
:${rowCounter}:
I cannot figure out why rowCounter is not getting evaluated to the
value.
I have other pages from other environments that I cut and pasted this
from and those are working fine. I cannot figure out what I am
missing here or in my Tomcat configuration for this environment.
I am hoping another set of eyes may set me straight.
Thanks
My original setup used JSF Facelets and a JavaBean in a JSP document
(XML). After I ran into problems, I chipped away all of the layers
until I narrowed the problem down to something related to the JSTL.
I now have the following very basic jsp file
-----------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
</head>
<body>
<c:set var="rowCounter" value="1" />
:<cut value="${rowCounter}" />:
</body>
</html>
-----------------------------------
I would expect the output to be
:1:
but instead I get
:${rowCounter}:
I cannot figure out why rowCounter is not getting evaluated to the
value.
I have other pages from other environments that I cut and pasted this
from and those are working fine. I cannot figure out what I am
missing here or in my Tomcat configuration for this environment.
I am hoping another set of eyes may set me straight.
Thanks