Eclipse (Helios) sometimes marks the actual appearance of the JSP as having errors. It looks like it often breaks when I use the <c: if> tag. For example, in a JSP with only 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 appear on the Problems tab after compilation:
- Incompatible operand types String and int line 1
- javax.servlet.jsp.JspException cannot be resolved to type 1 string
- javax.servlet.jsp.PageContext cannot be resolved to a string of type 1
The code is working fine. Does confirmation for the JSP have a problem, I will skip something obvious or it indicates that something is not configured correctly.
java eclipse validation jsp
worpet Sep 24 '10 at 18:28 2010-09-24 18:28
source share