<!-- 遍历集合 -->
<c:if test="${not empty employeeList}">
<table>
<thead>
<tr>
<th>姓名</th>
<th>年龄</th>
<th>部门</th>
</tr>
</thead>
<tbody>
<!-- items指定要遍历的集合,var指定当前迭代项的变量名 -->
<c:forEach items="${employeeList}" var="emp" varStatus="status">
<tr>
<!-- 使用EL表达式访问对象属性 -->
<td>${emp.name}</td>
<td>${emp.age}</td>
<td>${emp.department}</td>
</tr>
</c:forEach>
</tbody>
</table>
</c:if>