jsp引入:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
页面内容
<c:forEach var="record" items="${recordList}" varStatus="vs">
<tr>
<td align="center" valign="middle" height="35px">${record.id}</td>
<td align="center" valign="middle" height="35px">${record.account}</td>
<td align="center" valign="middle" height="35px">${record.productname}</td>
<td align="center" valign="middle" height="35px">${record.spname}</td>
<td align="center" valign="middle" height="35px">${record.programname}</td>
<td align="center" valign="middle" height="35px">
<fmt:formatDate value="${record.starttime}" pattern="yyyy.MM.dd hh:mm:ss"/>
</td>
<td align="center" valign="middle" height="35px">
<fmt:formatDate value="${record.endtime}" pattern="yyyy.MM.dd hh:mm:ss"/>
</td>
</tr>
</c:forEach>