<c:if>判断参数是否为空

<c:if test="${empty str}">  str为空</c:if>
<c:if test="${not empty str}"> str不为空</c:if>

 

posted @ 2016-01-25 16:38  星辰之力  阅读(1193)  评论(0编辑  收藏  举报