JSTL取List的长度

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>--------这里就需要有standard.jar这个包

必须要导的两个包。

 

后台传过来的比如说List  results = new ArrayList();

前台求长度:${fn:length(results )}

 

转自:http://www.cnblogs.com/henuyuxiang/p/6211208.html

posted @ 2018-08-03 15:10  康总  阅读(256)  评论(0编辑  收藏  举报