?? bookdetails.jsp
字號:
<%@ page contentType="text/html; charset=GB2312" %>
<%@ include file="common.jsp" %>
<%@ page import="java.util.*" %>
<html>
<head><title>TitleBookDescription</title></head>
<%@ include file="banner.jsp" %>
<br>
<%
//Get the identifier of the book to display
String bookId = request.getParameter("bookId");
if(bookId==null)bookId="201";
BookDetails book = bookDB.getBookDetails(bookId);
%>
<%
if(book==null)
{
%>
<p>書號"<%=bookId%>"在數(shù)據(jù)庫中不存在<p>
<strong><a href="<%=request.getContextPath()%>/catalog.jsp">繼續(xù)購物</a></strong>
<%
return;
}
%>
<p>書名:<%=convert(book.getTitle())%></p>
作者: <em><%=convert(book.getName())%> </em>
(<%=book.getYear()%>)<br>
<p>價格(元):<%=book.getPrice()%></p>
<p>銷售數(shù)量:<%=book.getSaleAmount()%></p>
<p>評論:<%=convert(book.getDescription())%></p>
<p><strong><a href="<%=request.getContextPath()%>/catalog.jsp?Add=<%=bookId%>">加入購物車</a>
<a href="<%=request.getContextPath()%>/catalog.jsp">繼續(xù)購物</a></p></strong>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -