首页 > 其他 > 详细

Illegal use of <when>-style tag without <choose> as its direct parent

时间:2015-05-21 15:35:27      阅读:1004      评论:0      收藏:0      [点我收藏+]

在jsp页面用报错Illegal use of <when>-style tag without <choose> as its direct parent
原因是:必须在里面使用。
具体用法如下:

<c:choose>
    <c:when test="${book.compareToday==‘0‘}">
    <h5>预约过期</h5>   
    </c:when>   
    <c:otherwise>
取消预约
</c:otherwise>
</c:choose>

Illegal use of &lt;when&gt;-style tag without &lt;choose&gt; as its direct parent

原文:http://blog.csdn.net/zl544434558/article/details/45892055

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!