Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 206704

Summary: Invalid "EL Syntax Error" warning flagged
Product: [WebTools] WTP Source Editing Reporter: Rod Bollinger <techinfo>
Component: jst.jspAssignee: Ian Tewksbury <itewksbu>
Status: RESOLVED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: nsand.dev
Version: 3.0Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rod Bollinger CLA 2007-10-17 21:40:10 EDT
Build ID: I20070621-1340

Steps To Reproduce:
In code:
Map<String, String> props = new HashMap<String, String>();
props.put("books.list.title", "Books in Stock");
ctx.setAttribute("props", props); // ctx is the ServletContext

The following EL statement in a properly formatted JSP gets flagged as being "EL Syntax Error" - it is not. 

In JSP:
...
<h1>${props["books.list.title"]}</h1>
...


More information:
According to the JSP 2.0 EL specification, the key value string ("books.page.title") is valid and will resolve a value in the props map with that key. i.e. ${map["key"]} ==> "value"

Additionally, it works correctly and displays the proper output.

Eclipse 3.3.0 / WTP 2.0 / Tomcat 5.5.23 / JSP 2.0 / Servlet 2.4
Comment 1 Rod Bollinger CLA 2007-10-18 15:49:04 EDT
This bug appears to be related to the following previously reported variations:
#112527
#136795
#149392

Apparently this bug has been around for over two years. Is there any chance of getting it resolved anytime soon?
Comment 2 Nitin Dahyabhai CLA 2007-10-19 19:31:45 EDT
We don't have the resources or expertise to handle this right now and would greatly appreciate any assistance the community at large would be willing to offer.
Comment 3 Taro App CLA 2008-12-12 04:08:16 EST
Looks like this has been fixed in WTP 3.0.3. (See bug#136795)
Comment 4 Ian Tewksbury CLA 2009-06-15 10:39:04 EDT

*** This bug has been marked as a duplicate of bug 136795 ***