JSTL 判断条码,如果,否则

时间:2014-02-12 01:11:34   收藏:0   阅读:443

1.单个判定


<c:if test="${pproduct_type!=0}"> 如果
    测试
</c:if>






<c:choose> <c:when test=‘${p.product_type==1}‘> 如果

<font color="#FF0000"> 新品</font> </c:when>

<c:otherwise>否则

<font color="#666"> 新品</font>
</c:otherwise></c:choose> 

原文:http://blog.csdn.net/yongweb/article/details/19077877

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!