JSTL C tag <c:if> to judge whether the parameter is empty

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

 

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326686920&siteId=291194637