📄 index.jsp
字号:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.*"%>
<html>
<head>
<title>My JSP 'success.jsp' starting page</title>
<link href="1.css" type="text/css" rel="stylesheet">
</head>
<body>
<div id="container">
<div id="banner">
<%@include file="head.jsp"%>
</div>
<div id="cate">
<a>全部图书分类</a><br/>
<ul>
<c:forEach items="${catelist}" var="cate">
<li><a href="/eBook/LeiServlet?cateid=${cate.cateid}&action=showcate">${cate.catename}</a></li>
</c:forEach>
</ul>
<br/>
最新更新<br/>
<img src="images/0.gif">
</div>
<div id="content">
<center>
<hr>
<c:forEach var="book" items="${pagelist}">
<table border="0" width="650px" class="table">
<tr><td>
<span style="margin-right:70px">
<a href="BookInfoServlet?id=${book.bookId}"><img src=${book.image} height="100" width="80"></a>
</span>
</td>
<td with="500px">书名:${book.bookName}<br/>
作者:${book.author}<br/>
出版社:${book.publishCompany}<br/>
出版时间:${book.publishDate}<br/>
原价:${book.beforePrice}¥<br/>
现价:${book.nowPrice}¥<br/>
</td>
</tr>
</table>
<hr>
</c:forEach>
<table width="650" border="0" class="table">
<tr><td>
<a>共${allpages}页</a><a>第${currentpage}页</a>
<c:forEach begin="1" var="num" end="${allpages}">
<a href="/eBook/BookServlet?cpage=${num}"> 第${num}页</a>
</c:forEach>
</td></tr>
</table>
</center>
</div>
<div id="footer"><%@ include file="foot.jsp" %></div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -