首页 新闻 会员 周边

jsp使用c:choose判断两个字符串类型数字是否相等

0
[待解决问题]

我在jsp里面使用c标签做判断的时候,billStatus是有值的,但是就是不进c:when直接走c:otherwise.这到底是什么原因?

<c:choose>
<c:when test="${order.billStatus=='0'}">待付款</c:when>
<c:when test="${order.billStatus=='1'}">已付款</c:when>
<c:when test="${order.billStatus=='2'}">已退款</c:when>
<c:when test="${order.billStatus=='3'}">订单完成</c:when>
<c:when test="${order.billStatus=='4'}">已删除订单</c:when>
<c:when test="${order.billStatus=='5'}">退单</c:when>
<c:when test="${order.billStatus=='6'}">回单</c:when>
<c:when test="${order.billStatus=='7'}">支付失败</c:when>
<c:otherwise>异常</c:otherwise>
</c:choose>

轩嫒之恋的主页 轩嫒之恋 | 菜鸟二级 | 园豆:202
提问于:2018-02-26 14:20
< >
分享
所有回答(0)
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册