facebook

Javascript tag validation error

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #323108 Reply

    sergiocg80
    Member

    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

    #323114 Reply

    sergiocg80
    Member

    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.

    #323130 Reply

    support-swapna
    Moderator

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Javascript tag validation error

You must be logged in to post in the forum log in