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.