list_library.jsp

来自「在sun实训时写的」· JSP 代码 · 共 39 行

JSP
39
字号
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>         You currently have <b>${fn:length(sessionScope.library.DVDCollection)}</b>        DVDs in your collection:<br/>        <table border='0' cellspacing='0' cellpadding='5'>            <tr>                <c:if test="${not empty sessionScope.showTitle}">                    <th>TITLE</th>                </c:if>                <c:if test="${not empty sessionScope.showYear}">                    <th>YEAR</th>                </c:if>                <c:if test="${not empty sessionScope.showGenre}">                    <th>GENRE</th>                </c:if>            </tr>            <c:forEach var="item" items="${sessionScope.library.DVDCollection}">                <tr>                    <c:if test="${not empty sessionScope.showTitle}">                        <td>${item.title}</td>                    </c:if>                    <c:if test="${not empty sessionScope.showYear}">                        <td>${item.year}</td>                    </c:if>                    <c:if test="${not empty sessionScope.showGenre}">                        <td>${item.genre}</td>                    </c:if>                </tr>            </c:forEach>        </table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?