当前位置: 代码迷 >> ASP >> jstl:org.apache.jasper.JasperException: The end tag "</c:when" is unbalanced
  详细解决方案

jstl:org.apache.jasper.JasperException: The end tag "</c:when" is unbalanced

热度:3967   发布时间:2012-10-09 10:21:45.0
jstl:org.apache.jasper.JasperException:. The end tag "</c:when" is unbalanced

?<c:choose>
?? <c:when test="${status.index==0}">
??? style="display:block"
?? </c:when>
?? <c:otherwise>
??? style="display:none"
?? </c:otherwise>
?</c:choose>

?

org.apache.jasper.JasperException: /jsp/statAnal/often/establish/t5_1Detail.jsp(128,3) The end tag "&lt;/c:when" is unbalanced

?

原因:<c:when test="${status.index==0}">? 写成了 :<c:when test="${status.index==0}"/>???多了"/"
?

?

org.apache.jasper.JasperException: /jsp/statAnal/often/establish/t5_1Detail.jsp(132,4) The end tag "&lt;/c:choose" is unbalanced

?

原因:</c:otherwise> 写成了 <c:otherwise> 少了"/"

  相关解决方案