wrongly mark <c:choose> syntax error in <script> segment of JSP in 7.0.2

Hi,

IDEA wrongly marks syntax error when is used in of JSP and Format Code totally mess the source code . It happens in both 7.0.2 and build 7648. <c:choose> <c:when test="${page ==1}"> </c:when> </c:choose> <script type="text/javascript"> <c:choose> <c:when test="${page ==1}"> </c:when> </c:choose> ]]>

Thanks
John

3 comments

Hello john,

Have you taglib declaration for "c" prefix?

Hi,

IDEA wrongly marks syntax error when <c:choose> is used in <script> of
JSP and Format Code totally mess the source code . It happens in both
7.0.2 and build 7648.

<c:choose>
<c:when test="${page ==1}">
</c:when>
</c:choose>
<script type="text/javascript">
<c:choose>
<c:when test="${page ==1}">
</c:when>
</c:choose>
</script>
Thanks
John

Alexander.


0

Hi Alexander,

The JSP file intends to be included in the middle of master JSP file by . Since taglib for prefix c has been declared in the head of master JSP, there is need to declare prefix c again (actually some web containers complain about duplicate declaration). It is weird that works fine outside ]]></span> segment even taglib for prefix c isn't declared. It is better to fix this issue for this usage scenario.<br/><br/>Thanks<br/>John</p>

0

Hi Alexander,

The JSP file intends to be included in the middle of master JSP file
by <%include%>. Since taglib for prefix c has been declared in the
head of master JSP, there is need to declare prefix c again (actually
some web containers complain about duplicate declaration).

It is weird that <c:choose> works fine outside <script> segment even
taglib for prefix c isn't declared. It is better to fix this issue for
this usage scenario.

Thanks
John


Got it. This is the issue http://www.jetbrains.net/jira/browse/IDEADEV-12405.
You can vote for / subscribe to it.

Regards,
Alexander.


0

Please sign in to leave a comment.