EL support in JSTL 1.2 taglibs - bug? [message #120795] |
Thu, 14 July 2005 08:48  |
Eclipse User |
|
|
|
There appears to be a bug in the JSP editor/validator relating to scoped
variables referenced in JSTL 1.2 tags using dot notation. I am using the
rlease version of Eclipse 3.1 with WTP 0.7M5 and associated dependancies,
and the latest JSTL standard tag library from Jakarta (v1.1.2)
Examples:
1/. The following works as it should in the main body of the JSP:
${sessionScope.testVar}
2/. The following raises a validation error, although it is valid syntax
<c:if test='${sessionScope.testVar=="hello"}'>
<%--do something--%>
</c:if>
Error: The method getTestVar() is undefined for the type Map
3/. However the following also works correctly:
<c:if test='${sessionScope["testVar"]=="hello"}'>
<%--do something--%>
</c:if>
When published to a server (Tomcat 5.5), all of these work OK, but only
two of them pass the validation and syntax checking tests.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02823 seconds