通过本文主要向大家介绍了jsp页面遍历集合,jsp页面遍历list集合,jsp页面循环,jsp页面循环list,jsp页面for循环等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
第一种:struts1.2循环遍历元素,name是结果集。引用标签库<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<logic:iterate>主要用来处理在页面上输出集合类,集合一般来说是下列之一:
1、 java对象的数组
2、 ArrayList、Vector、HashMap等
例: