| Author |
Message |
|
|
Post subject: EL Syntax validator not working
Posted: Sep 01, 2006 - 04:37 PM
|
|
Registered Member

Joined: Dec 15, 2004
Posts: 16
|
|
I have a valid JSP page using EL syntax. But the EL Syntax validator flags it as a problem.
Here is an isolated example. It seems to be flaggin map access operators as exceptions.
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>My JSP 'MyJsp.jsp' starting page</title>
</head>
<body>
This is my JSP page. <br>
This should be some valid EL
<br>
This passes validation
<br>
${'This is a string literal in EL'}
<br>
Here we extract the host property from the header. Jsp editor tells me this
is an el syntax error but it's not.
<br>
${header['host']}
<br>
Maybe it will work with double quotes
<br>
${header["host"]}
<br>
Nope it doesn't
<br>
</body>
</html>
|
| Code: |
*** Date: Fri Sep 01 11:35:11 EDT 2006
*** System properties:
OS=mac os x
OS version=10.4.7
Java version=1.5.0_06
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.0 GA
Build id: 20060805-5.0-GA
*** Eclipse details:
Eclipse SDK
Version: 3.2.0
Build id: M20060629-1905
Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816
Eclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060629-1905
Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060629-1905
Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060629-1905
Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m------6zXJJzJzJq
Build id: M20060629-1905
Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060629-1905
Eclipse startup command=-os
macosx
-ws
carbon
-launcher
/Applications/Development/eclipse_myeclipse/Eclipse.app/Contents/Resources/Splash.app/Contents/MacOS/eclipse
-name
Eclipse
-showsplash
600
-exitdata
10000
-keyring
/Users/rwells/.eclipse_keyring
-consoleLog
-showlocation
-vm
/usr/bin/java
|
|
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 02, 2006 - 03:29 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
This looks like a bug, thank you for reportingi t. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 27, 2007 - 07:02 PM
|
|

Joined: Feb 02, 2007
Posts: 37
|
|
FYI, this bug appears to still exist in MyEclipse 6.0. I get flagged with "EL Syntax Error" on the third line of the following snippet:
| Code: | <div class="form-row">
<label for="mrn">Subject's MRN:</label>
${lookupSubject.mrnNameMap["Columbia"]}
</div> |
Doesn't matter if I use single or double quotes, same as above...
Is there any way to get this looked into? It's now a year-old bug... |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 27, 2007 - 07:26 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
delfuego,
Sorry for the delay. There are so many complexities to the EL validator and different forms to EL validation that unfortunately it's not a quick fix. We hope to improve the situation by 6.1, but again, there is a lot on our plate to do. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 27, 2007 - 07:27 PM
|
|

Joined: Feb 02, 2007
Posts: 37
|
|
OK -- the only issue I have is that you can't selectively suppress warnings like that from the JSP validator, so one incorrect validation error makes it incredibly difficult to find the *real* validation errors in large projects, since the "invalid" icon will persist on actually-valid objects. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 27, 2007 - 07:32 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
Understood.
It' ssomething we've looked into in the past, but wasn't cheap to implement. So we *did* add excluding specific files from the validation process though.
You could utilize that for certain EL heavy pages... |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 22, 2008 - 05:08 AM
|
|
Registered Member

Joined: May 12, 2008
Posts: 9
|
|
Any news on if the EL validator will be fixed for 6.5? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: May 22, 2008 - 06:06 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
I believe it was pushed to 7.0 for investigation, we had to work hard on getting Maven in, Hibernate/Spring/JPA updates in, JSF/Facelets editor/designer/preview updates in 6.5 and connector improvements (in addition to a bunch of other stuff). |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 24, 2009 - 03:51 PM
|
|
Veteran Member


Joined: Jul 07, 2004
Posts: 13
|
|
FWiW - This bug is still there in 7.0 (All-in-one / latest patches / WinXP).
I am seeing it with Taglib function. E.g. ${mytags:getURL( var1, "action="something", false)} shows a red X with the following notations:
EL Syntax Error
Undefined attribute name (action)
Undefined attribute name(false) |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 30, 2009 - 05:17 PM
|
|
Veteran Member


Joined: Jul 07, 2004
Posts: 13
|
|
FWiW... This bug still in 7.5 with latest updates... |
|
|
| |
|
|
|
 |
|
|