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.
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
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.
Hello john,
Have you taglib declaration for "c" prefix?
Alexander.
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
Got it. This is the issue http://www.jetbrains.net/jira/browse/IDEADEV-12405.
You can vote for / subscribe to it.
Regards,
Alexander.