Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » EL support in JSTL 1.2 taglibs - bug?
EL support in JSTL 1.2 taglibs - bug? [message #120795] Thu, 14 July 2005 08:48 Go to next message
Eclipse UserFriend
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.
Re: EL support in JSTL 1.2 taglibs - bug? [message #120881 is a reply to message #120795] Thu, 14 July 2005 12:54 Go to previous messageGo to next message
Eclipse UserFriend
Is Tomcat 5.5 the targetted server for the project as well?

--
- Nitin
Re: EL support in JSTL 1.2 taglibs - bug? [message #121004 is a reply to message #120881] Fri, 15 July 2005 05:04 Go to previous messageGo to next message
Eclipse UserFriend
Yes - I used the same local installation of Tomcat to get the runtime
configuration - and this is also the server to which the project is
published

Tomcat 5.5.9 with the JDK 1.4 compatbility patch

Note that the project runs OK on the server - I have to disable the JSP
validation in Eclipse to avoid the parse errors, and then
publishing/runnning works OK.

Nitin Dahyabhai wrote:

> Is Tomcat 5.5 the targetted server for the project as well?
Re: EL support in JSTL 1.2 taglibs - bug? [message #121023 is a reply to message #120795] Fri, 15 July 2005 05:42 Go to previous message
Eclipse UserFriend
I have checked that this problem remains in the latest WTP version (WTP
0.7RC1)

I have submitted this as a bug report (103980)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=103980
Previous Topic:Generic Servers
Next Topic:How to config DB link with charset support?
Goto Forum:
  


Current Time: Fri May 02 09:59:02 EDT 2025

Powered by FUDForum. Page generated in 0.02823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top