Eclipse (Helios) occasionally marks valid looking JSP content as having errors. It seems like it often breaks when I use the <c:if> tag. For example, in a JSP with just this content:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<body>
<c:if test="${1 == 1}">
something
</c:if>
</body>
</html>
The following errors show in the "Problems" tab after I compile:
- Incompatible operand types String and int line 1
- javax.servlet.jsp.JspException cannot be resolved to a type line 1
- javax.servlet.jsp.PageContext cannot be resolved to a type line 1
The code runs fine. Does the validation for JSPs have issues, am I missing something obvious, or does this indicate something isn't set up correctly.