日期:2014-05-16 浏览次数:20334 次
导入JSTL <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
以下是迭代和逻辑判断的使用 <c:forEach var="filebean" items="${requestScope.fl}" varStatus="index" > <tr> <td align="center"><c:out value="${filebean.id}"/></td> <td align="center"><c:out value="${filebean.fileName}"/></td> <td align="center"><c:out value="${filebean.fileSize}"/></td> <td align="center"><c:out value="${filebean.lastModifyTime}"/></td> <td align="center"><c:out value="${filebean.fileType}"/></td> <td align="center"> <c:choose> <c:when test="${filebean.statusByData&&filebean.statusBySign}"> <font style="color: red"><strong>content</strong></font> </c:when> <c:when test="${!filebean.statusByData&&filebean.statusBySign}"> <font style="color: red;"><strong>content</strong></font> </c:when> <c:when test="${filebean.statusByData&&!filebean.statusBySign}"> <font style="color: red;"><strong>content</strong></font> </c:when> <c:otherwise> <font style="color: red"><strong>content</strong></font> </c:otherwise> </c:choose> </td> </tr> </c:forEach>
?