harryBundles
harryBundles

Reputation: 158

JSP HTML Errors

I am using a combination of HTML and JSP and Eclipse (Springsource) is showing errors when I put JSP inside of an HTML tag or javascript.

<body onload="script();
 <c:forEach var="assocObjType"
     items="${assocTypes}">script2('${assocObjType.param}');
 </c:forEach>">

Am i doing something wrong or is there a way to turn this off? when i remove the c:forEach part, the page is fine, but with that in there the whole page is red underlines..

thanks in advance

Upvotes: 0

Views: 2439

Answers (1)

BalusC
BalusC

Reputation: 1109222

JSP/EL validation in Eclipse is an epic fail. Just ignore it and run it. If it doesn't work as expected (rightclick, choose View Source to check generated HTML to be sure). If those Eclipse errors bother you, just turn off JSP/EL validation in Eclipse preferences.

Upvotes: 2

Related Questions