<c:if test="${fn:length(fileInfoList)<=0}">
<center>
<span style="color:red,">请选择管理种类</spans>
<center>
</c:if>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:out value="${fn:length(list)}"></c:out>
请注意,经常有人用list.size是否为零来判断,这事错误的做法