facebook

How to avoide "Undefined attribute name" with JSTL

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #261456 Reply

    Marko
    Member

    Hi,

    I have this part of JSTL code in my JSP:

    
    <select name="continent"  onchange="submit()"> 
        <c:forEach items="${Continents}" var="Continent">
            <option value="${Continent}"
            <c:if test="${Continent==continent}"> selected="selected"</c:if>
            >${Continent}</option>
        </c:forEach>
    </select>
    

    and in MyEclipse(5.0.1) JSP editor im getting

    Undefined attribute name (<c:if test=”${Continent==continent}”>
    selected=”selected”</c:if>).

    warning.

    Ok, all this with c:if is not valid HTML attribute but that is a JSTL code not HTML … and I think JSP Editor should realize this and not report warning.

    However, is there any way to avoid this warning now in this version ?

    Thanks.

    #261512 Reply

    Riyad Kalla
    Member

    We are working on improving this, the problem is outlined here in more detail:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-13364.html

    #264024 Reply

    jaynes
    Member

    Is anything happening with this problem? The error still shows in 5.1.0GA.

    #264026 Reply

    Riyad Kalla
    Member

    Nothing yet, we have a lot of other things on our plate right now that need to get done for our next release. Sorry for the delay.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to avoide "Undefined attribute name" with JSTL

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