[opencms-dev] problem with JSTL EL
Andy Kriger
akriger at greaterthanone.com
Wed Nov 10 21:32:26 CET 2004
Ignore this message - apparently the problem comes from a change in the
JSP2.0 spec used by Tomcat 5.
I was able to fix with the page directive
<%@ page isELIgnored="false" %>
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Andy Kriger
Sent: Wednesday, November 10, 2004 2:57 PM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] problem with JSTL EL
I'm seeing a strange problem that I'm wondering if anyone else has seen. I
am trying to use the JSTL c:out tag with expression language to display
information stored in the pageContext and request.
in my JSP
<c:set value="TEST" var="test"/>
<c:out value="${test}"/><br>
<%=pageContext.getAttribute("test")%><br>
<c:if test="${test}">
TRUE
</c:if><br>
<c:if test="<%="TEST".equals(pageContext.getAttribute("test"))%>">
TRUE
</c:if><br>
what I see
${test}
TEST
TRUE
So, the c tags are working (set, out, if all do something)
But, expression language does not work - the expressions are not being
evaluated
I am running Tomcat 5.0.28 with OpenCMS 6a2 and Java1.4.2
I installed the jstl-examples webapp and do not see problems with EL there.
So, I am wondering if anyone has had problems with EL within OpenCms.
thx
andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041110/e6e20708/attachment.htm>
More information about the opencms-dev
mailing list