Can IntelliJ Idea be made to understand JSTL?
Answered
I was very surprised to discover that IDEA does not understand JSTL by default. For example, when I tried the snippet below... it gave me a Duplicate id reference on the Spring MVC path value.
Is there a way to make IDEA understand that only one of those two instances is being used so that it does not flag it as an error?
<c:choose >
<c:when test="${isEdit}">
<form:input type="time" step="60" path="job.schedStartTime.HTML5Time" />
</c:when>
<c:otherwise>
<form:input type="time" step="60" path="job.schedStartTime.HTML5Time" readonly="true"/>
</c:otherwise>
</c:choose>
Please sign in to leave a comment.
Unfortunately, this is a known issue: https://youtrack.jetbrains.com/issue/IDEA-91453/Incorrect-Duplicate-id-reference-error-in-JSP
Please vote for it. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with our issue tracker.