facebook

JSP editor parses commented code [Closed]

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

    Ivar Vasara
    Member

    I have some commented code involving an experimental custom tag. MyEclipse sets the commented code as an error which appears at the top of my “Problems” view. I don’t want to delete the tag as it’s there for reference. Any suggestions ?

    
    100:<%--
    101:<content:action2 name="stream" context="search"firstItem="true"> 102:Play all
    103:</content:action2>
    104:--%>
    

    Eclipse:3m6
    ME:3.7RC2

    #202495 Reply

    Ivar Vasara
    Member

    oops, forgot to mention that the error was on line 101. (despite being in the comment block)

    #202501 Reply

    Scott Anderson
    Participant

    Have you tried commenting it out with:

    
    <!--
    -->
    
    #202507 Reply

    @scott wrote:

    Have you tried commenting it out with:

    
    <!--
    -->
    

    What you suggest is wrong because there is a diffrence between html/xml comments and jsp comments.

    JSP comments (<%– –%>) instruct the web container not to execute the commented lines. In the other hand html comments mean nothing to the web container.

    #202508 Reply

    No Operation
    Member

    are you sure that the file was revalidated? seems like an error from before commenting it out…

    NOP

    #202750 Reply

    Scott Anderson
    Participant

    What you suggest is wrong because there is a diffrence between html/xml comments and jsp comments.

    JSP comments (<%– –%>) instruct the web container not to execute the commented lines. In the other hand html comments mean nothing to the web container.

    I stand corrected. That what happens when you try to do support on too little sleep. 🙂

    #202774 Reply

    Ivar Vasara
    Member

    sorry, this bug report is invalid due a nasty misconfiguration issue on my part. please ignore 🙁

    #202779 Reply

    Riyad Kalla
    Member

    Thank you following up and letting us know.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: JSP editor parses commented code [Closed]

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