Jsp中获得集合List或Set的长度 首先要引入<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 接着使用:${fn:length(set)} 红色部分为集合对象