首页 > 技术文章 > <c:if>判断参数是否为空
longshiyVip 2015-11-12 13:46 原文
EL表达式判断字符串是否为空:
<c:if test="${empty str}"> str为空</c:if> <c:if test="${not empty str}"> str不为空</c:if>