一个jstl的c:if的信息错误

                    ${record.isDefault}
                    <c:if test="${record.isDefault == '0' }">否</c:if>
                    <c:if test="${record.isDefault eq '1'}">是</c:if>

看出问题了吗?在c:if中不能有空格,有空格一定是false。

posted @ 2016-12-11 21:43  guodaxia  阅读(212)  评论(0)    收藏  举报