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

EL表达式判断字符串是否为空:

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

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

 

posted @ 2015-11-12 13:46  人生设计师  阅读(902)  评论(0编辑  收藏  举报