都要引入:<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
1、list为空:
<c:if test= "${!empty list} ">
2、list的size大于0:
必须引入:<%@ taglib prefix= "fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:if test="${fn:length(list)>0}">
3、控制字段长度:
必须引入<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:choose>
<c:when test="${fn:length(content.content) > 12}">
<c:out value="${fn:substring(content.content, 0,10)}..." />
</c:when>
<c:otherwise>
<c:out value="${content.content }" />
</c:otherwise>
</c:choose>