facebook

[5.1] JSP validator doesn’t recognize templating in HTML tag

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

    arjan.tijms
    Member

    We have a JSP page where a select box is dynamically build. In large lines it looks like this:

    
    <option value="<c:out value="${user.id}"/>" 
        <c:choose>
            <c:when test="${some_test}">
                SELECTED
            </c:when>
             </c:choose> >
    </option>
    

    The entire <c:choose> block is underlined in yellow, and when hovering the mouse over these lines there is the message: “Undefined attribute name ( <c:choose>
    <c:when test=”${some_test}”>
    SELECTED
    </c:wh”

    Surely this is not what should happen. It somehow doesn’t recognize the taglibs and thinks it are HTML attributes. This mistake is not limited to taglibs though. I’ve seen the same thing happening with scriptlets in HTML tags.

    I’ve tried putting the whole thing on one line, but this does not help either. I hope this can be fixed in a future release.

    #261913 Reply

    Riyad Kalla
    Member

    Arjan,
    This looks to be a problem of the lexer just not understanding this construct. Thank you for the report, I’ll go ahead and file it for investigation.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [5.1] JSP validator doesn’t recognize templating in HTML tag

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