facebook

[Closed] JSP validation reports incorrect errors

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

    emmanuel
    Member

    Hello eApps,

    Using;
    WinXP
    Eclipse Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx Build id: M20060921-0945
    ME Version: 5.1.0 GA Build id: 20061111-5.1.0-GA

    I notice two anomalies regarding JSP validation.

    1. no matter which options I select/deselect in Window->Preferences->Validation->JSP the project’s JSPs are validated. I know this because ME shows JSP validation errors. The only option that works is if I select suspend all validators–but this is not what I want. 😮

    2. JSP validation is incorrectly done. Here is my scenario. I make use of standard files (jspf) which are included in main pages. I suggest when ME validates, main JSP pages and the jspf files should first be assembled to make up the complete JSP. At run time this is done and thus parses and compiles correctly but during JSP validation within ME, because the individual pieces aren’t well formed on their own, erroneous validation errors are produced by ME. An example, the <body> tag is in one jspf and the </body> is in main JSP file. ME does not first combine the files before validation, thus picks up the </body> tag as unmatched. Aforementioned is merely one example of my case. 💡

    Could you please assist me in this matter and if this is a bug, could you please log it? ❓

    Kind regards
    Emmanuel

    #264866 Reply

    Riyad Kalla
    Member

    1) After making the change you need to rebuild your project to clear the markers and then re-validate.

    2) This is exactly what is done with the JSP validator, but not with the HTML validator (which is what is reporting the HTML-errors, like mismatched tags)

    Another option you have is to tell MyEclipse to skip validation on individual files if you wanted to.

    I would suggest turning off the HTML validator first, then rebuilding your project and seeing if that improves things.

    #264893 Reply

    emmanuel
    Member

    Hello Riyad,

    Thank you, turning on all validators and turning off only the HTML validator did it.

    Kind regards
    Emmanuel

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] JSP validation reports incorrect errors

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