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

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

 

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

posted @ 2012-10-22 16:02  小木v587  阅读(449)  评论(0)    收藏  举报