您的位置:首页 > 其它

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

2015-05-21 15:06 561 查看
在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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐