facebook

XML editor incorrectly flagging problems [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #207176 Reply

    mountjoyj
    Member

    Hi,

    I have 300 “errors” – all due to JSP’s having something like this:

    <jsp:forward page=”<%= “” %>”/>

    (I had my own tags, but it seems to work for standard tags too)

    Basically you get the error:
    “expected %>”

    I suspect a parsing error….

    Moreover, the JSP’s do compile and run fine. And now the IDE thinks that there are severe problems in the project, when there aren’t.

    Any ideas? EclipseIDE 3.7.2. (BTW, how about making the “About MyEcliipse” dialog show the version number – I had to go to file system to see which version I had installed)

    Thanks

    #207177 Reply

    Riyad Kalla
    Member

    BTW, how about making the “About MyEcliipse” dialog show the version number

    Click Help > About, then click the MyEclipse logo button or any of the details buttons to find the version number. The Help > About main page is Eclipse’s, we and every other plugin has to play nice with it, so we only get buttons to show our details.

    I have 300 “errors” – all due to JSP’s having something like this:

    <jsp:forward page=”<%= “” %>”/>

    This *is* actually an error. Per the JSP spec you cannot have unescaped double quotes inside of expressions like this. You must escape them:

    
    <jsp:forward page="<%= \"\" %>"/> 
    

    While this may work on the app server you are using, it may not work on others. This is why we cannot support a situation like this that is out of spec, we run the risk of allowing ‘invalid’ code to get deployed to an app server which is just not an option.

    Here is some info about the spec:
    https://www.genuitec.com/forums/topic/compiler-complains-about-double-quotes-in-attributes-bug/&highlight=quotes

    And if you need the quotes in the value for formatting reasons, look here:
    https://www.genuitec.com/forums/topic/custom-tag-issue-double-quotes-not-allowed/&highlight=quotes

    #207190 Reply

    mountjoyj
    Member

    Crikey, and I’ve used this app on 3 different app servers.
    Excellent, I’ll fix them..Thanks.

    #207203 Reply

    Scott Anderson
    Participant

    BTW, how about making the “About MyEcliipse” dialog show the version number

    In version 2.8, the version number is also shown on the main MyEclipse preference page at Window > Preferences > MyEclipse. Prior to 2.8 the version number is only available where Riyad indicated.

    I believe another option on the quoting is to use both single and double quotes, instead of escaping like this:

    
    <jsp:forward page='%= "" %>' />
    
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XML editor incorrectly flagging problems [Closed]

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