⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bookinfo.jsp

📁 jsp购物车源码,解压密码的要说明密码www.kj.com
💻 JSP
字号:

<%-- 
	程序:bookInfo.jsp 
	说明:该页面通过cookie得到书籍的ISBN,在利用BookBean连接到数据库查询书籍的详细信息
--%>
<%@ page contentType="text/html; charset=gb2312" language="java" session="true"  %>
<jsp:useBean id="book" class="beans.BookBean" scope="page"/>
<html>
	<head>
		<title>好好购书网 memberID=<%=session.getValue("memberID") %></title>
		<script src="script/javascript.js" language="javascript" type="text/javascript"></script>
		<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">	
		<script language="JavaScript">
		<!--
			function openWindow(str)
			{
				window.open("addCart.jsp?isbn="+str);
				return;
			}
		//-->
		</script>
	</head>
<body>
	<table width="80%" border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#666666">
		<tr>
			<td bgcolor="#f2f2f2">
<% 	
		String ISBN = request.getParameter("isbn");	//也是通过cookie得到书籍的ID
		if( ISBN !=null && !"".equals(ISBN) ){
			book.setBookInfo(ISBN);//再通过书籍的ID查询数据库给书籍的其他信息赋值
%>
			<table border="0" cellpadding="0" cellspacing="0" width="80%">
				<tr height="30">
					<td width="100"><font class="fontSize">编号:</td>
					<td width="300" align="left"><font class="fontSize"><%= book.getBookID() %></td>				
				</tr>
				<tr height="30">
					<td><font class="fontSize">书名:</td>
					<td width="300" align="left"><font class="fontSize"><%= book.getBookName() %></td>				
				</tr>
				<tr height="30">
					<td><font class="fontSize">出版社:</td>
					<td width="300" align="left"><font class="fontSize"><%= book.getBookPublisher() %></td>			
				</tr>
				<tr height="30">
					<td><font class="fontSize">作者/译者:</td>
					<td width="300" align="left"><font class="fontSize"><%= book.getBookAuthor() %></td>			
				</tr>
				<tr height="30">
					<td><font class="fontSize">价格:</td>
					<td width="300" align="left"><font class="fontSize"><%= book.getBookPrice() %></td>				
				</tr>
				<tr height="30">
					<td><font class="fontSize">内容简介:</td>
				</tr>
				<tr height="80">
					<td valign="top"><font class="fontSize"><%= book.getBookIntroduce() %></td>				
				</tr>
			</table>
<%  	}else{%>			
			<table>
				<tr>
					<td><font class="fontSize">没有该图书的任何信息</td>
				</tr>
			</table>
<%		}%>
			</td>
		</tr>	
	</table><br>
	<table width="80%" align="center">
		<tr>
			<td align="center"><a href="javascript:openWindow(<%= request.getParameter("isbn") %>)">加入购物车</a></td>
			<td align="center"><a href="shoppingCart.jsp">查看购物车</a></td>
			<td align="center"><a href="bookList.jsp">返回首页</a></td>
		</tr>
	</table>
</body>
</html>

⌨️ 快捷键说明

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