MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sergiocg80
Post subject: Javascript tag validation error  PostPosted: Feb 08, 2012 - 06:07 PM
Registered Member
Registered Member


Joined: Jul 26, 2011
Posts: 3

Hi,

I have tons of JSP files marked with the same validation error. When I use the <c:if> tag INSIDE a Javascript block, and when there is a ! sign inside the tag, the validator marks two errors that say:

- Syntax error on token "<", delete this token
- Syntax error on token "if", delete this token

If I delete the ! sign, validation runs OK. ¿what can I do to solve this? I don't want to supress or disable Javascript validation settings. Outside a Javascript block (i.e., in HTML) validation works as expected. All files marked with this errors runs fine in every application server I tried.

Example:

<c:if test="${! myVar == myValue}"> [ERROR]
<c:if test="${myVar == myValue}"> [OK]

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
sergiocg80
Post subject:   PostPosted: Feb 08, 2012 - 07:45 PM
Registered Member
Registered Member


Joined: Jul 26, 2011
Posts: 3

I forgot to say that I'm using myeclipse 10.0

I did workaround this issue by using the operators 'not' and 'ne' instead of the operators ! and !=. But that's just a trick, not a solution.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Feb 09, 2012 - 06:02 AM



Joined: Nov 11, 2010
Posts: 2154

sergiocg80 ,

Thank you for pointing it. I could replicate the issue with MyEclipse 10 at my end.
I have filed a PR for the dev team to work on it. Please use the "ne" and "not" which are also valid operators in JSTL for now.

Sorry for the inconvenience caused.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits