今天在调试代码的时候发现,在jsp页面中注释的代码也别编译了,当然是在编译过程出了错误呵呵!
在jsp页面中注释有两种 1.<!-- 注释内容 -->
2. <%-- 注释内容 --%>
在第一种的注释内容中如果有动态代码,在页面调用的时候会对其进行编译的.如
<!--
<c:if test="${reportMultiFormSettingBean.isCorpOrOffOrAnkenReportType == true}">
<div class="AL_columnFull">
<div class="AL_columnBg">
"><fmt:message key="pc.f010-026-006.message.005"/></div>
</div>
</div>
</div>
</c:if>
-->
第二种情况里将不对其编译,直接在编译的时候跳过.