Community
Participate
Working Groups
Example: <c:choose> <c:when test="${lineInfo.count % 2 == 0}"> <tr bgcolor="#EFEFFF"> </c:when> <c:otherwise> <tr bgcolor="#FFFFFF"> </c:otherwise> </c:choose> <td><fmt:formatDate value="${ticket.targetDate}" pattern="dd/MM/yy HH:mm" /></td> </tr> The jsp editor produces a no <tr> start tag error. I.e. it can't see the <tr> inside the choose even though there is one inside all choices so the code is valid.
David, which version were you using? Also, the HTML validator doesn't understand the output created by that custom tag, there's actually no way to do that short of executing the tag. It is a real problem, but we're not sure how to improve it reliably. For now, you have new validation preferences in 3.0 to help work around it.
I'm using Eclipse 3.3 with WTP 2.0.2 at the moment. I don't understand why it cannot be done, other editors can look at conditionals although I can see how it would be more complicated than a markup language validator. Would it not be possible to build something as JSTL is such a standard now? I'm afraid I'm not up to doing anything about this myself yet but I think a lot of people would appreciate this and be willing to work on the problem as JSTL is quite important/popular these days.
This is still an issue in WTP 3.2
*** This bug has been marked as a duplicate of bug 152620 ***