JSTL判断list是否为空时间:2023-03-09 09:28:22 1.先在jsp页面中导入下列类库。 <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> 2.在页面中可以这样调用fun中的length方法,如下 <c:if test="${fn:length(list) <= 0}"> list对象为空 </c:if>