【JSP开源代码栏目提醒】:网学会员鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“EShop.jsp”一文,供大家参考学习
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>CH18 - EShop.jsp</title>
</head>
<body>
<h2>Model 2 范例 - Shoppingcart</h2>
<font size="+3">网络书店</font>
<hr><p>
<table border="1" width="631">
<tr bgcolor="#999999">
<td width="174"><div align="center"><b>书名</b></div></td>
<td width="101"><div align="center"><b>作者</b></div></td>
<td width="57"><div align="center"><b>出版社</b></div></td>
<td width="93"><div align="center"><b>价格</b></div></td>
<td width="47"><div align="center"><b>数量</b></div></td>
<td width="119"><div align="center"><b></b></div></td>
</tr>
<form name="shoppingForm" action="ShoppingServlet" method="POST">
<tr>
<td width="174"><div align="center">JSP 2.0 技术手册</div></td>
<td width="101"><div align="center">林上杰</div></td>
<td width="57"><div align="center">电子工业出版社</div></td>
<td width="47"><div align="right">50</div></td>
<td width="93"> 数量:
<input type="text" name="quantity" size="3" value=1>
</td>
<td width="119">
<input type="submit" name="Submit" value="放入购物车">
</td>
</tr>
<input type="hidden" name="name" value="JSP 2.0 技术手册">
<input type="hidden" name="author" value="林上杰">
<input type="hidden" name="publisher" value="电子工业出版社">
<input type="hidden" name="price" value="50">
<input type="hidden" name="action" value="ADD">
</form>
<form name="shoppingForm" action="ShoppingServlet" method="POST">
<tr>
<td width="174"><div align="center">紫牛——让产品自己说故事</div></td>
<td width="101"><div align="center">赛斯‧高汀</div></td>
<td width="57"><div align="center">商智</div></td>
<td width="47"><div align="right">237</div></td>
<td width="93">数量:
<input type="text" name="quantity" size="3" value=1>
</td>
<td width="119">
<input type="submit" name="Submit" value="放入购物车">
</td>
</tr>
<input type="hidden" name="name" value="紫牛——让产品自己说故事">
<input type="hidden" name="author" value="赛斯‧高汀">
<input type="hidden" name="publisher" value="商智">
<input type="hidden" name="price" value="237">
<input type="hidden" name="action" value="ADD">
</form>
<form name="shoppingForm" action="ShoppingServlet" method="POST">
<tr>
<td width="174"><div align="center">1421-中国发现世界</div></td>
<td width="101"><div align="center">孟西士</div></td>
<td width="57"><div align="center">远流</div></td>
<td width="47"><div align="right">470</div></td>
<td width="93">数量:
<input type="text" name="quantity" size="3" value=1>
</td>
<td width="119">
<input type="submit" name="Submit" value="放入购物车">
</td>
</tr>
<input type="hidden" name="name" value="1421-中国发现世界">
<input type="hidden" name="author" value="孟西士">
<input type="hidden" name="publisher" value="远流">
<input type="hidden" name="price" value="470">
<input type="hidden" name="action" value="ADD">
</form>
<form name="shoppingForm" action="ShoppingServlet" method="POST">
<tr>
<td width="174"><div align="center">如何打败可口可乐</div></td>
<td width="101"><div align="center">翟若适</div></td>
<td width="57"><div align="center">联合文学</div></td>
<td width="47"><div align="right">180</div></td>
<td width="93">数量:
<input type="text" name="quantity" size="3" value=1>
</td>
<td width="119">
<input type="submit" name="Submit" value="放入购物车">
</td>
</tr>
<input type="hidden" name="name" value="如何打败可口可乐">
<input type="hidden" name="author" value="翟若适">
<input type="hidden" name="publisher" value="联合文学">
<input type="hidden" name="price" value="180">
<input type="hidden" name="action" value="ADD">
</form>
<form name="shoppingForm" action="ShoppingServlet" method="POST">
<tr>
<td width="174"><div align="center">菲奥利娜逆势出击</div></td>
<td width="101"><div align="center">彼得‧鲍洛斯</div></td>
<td width="57"><div align="center">商周出版</div></td>
<td width="47"><div align="right">300</div></td>
<td width="93">数量:
<input type="text" name="quantity" size="3" value=1>
</td>
<td width="119">
<input type="submit" name="Submit" value="放入购物车">
</td>
</tr>
<input type="hidden" name="name" value="菲奥利娜逆势出击">
<input type="hidden" name="author" value="彼得‧鲍洛斯">
<input type="hidden" name="publisher" v