<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<%@ page import="java.util.*,com.jspdev.ch3.TestBean"%>
<html>
<head>
  <title>JSTL:c:forEach的使用</title>
</head>
<body bgcolor="#FFFFFF"><center>
<h4>User list</h4>
<table border=1>
<tr><td>用户名</td><td>密码</td><td>年龄</td></tr>
<c:forEach var="users" items="${users}" begin="2" end="4" step="2">
  <tr>
  <td><c:out value="${users.userName}"/></td>
  <td><c:out value="${users.password}"/></td>
  <td><c:out value="${users.age}"/></td>
  </tr>
</c:forEach>
</table> 
</center>
</body>
</html>
