<%@ page contentType = "text/html;charset = gb2312" import ="shopping.*"%>
<jsp:useBean id = "products" class = "shopping.Products" scope = "session"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<center>
<form action = "cart.jsp" method = post>
<table width="92%" height="227" border="1" bordercolor="#0033FF">
<tr>
<td>ID</td>
<td>名称</td>
<td>价格</td>
<td>是否有库存</td>
<td>出版社</td>
</tr>
<%
java.util.Vector v = products.getItems();
java.util.Enumeration e = v.elements();
while(e.hasMoreElements())
{
Item item = (Item)e.nextElement();
}
%>
<tr>
<td><input type = "checkbox" name = "itemId" value = "<%=item.getItemId()%>"></td>
<td><%= item.getDescription()%></td>
<td><%= item.getPrice()%></td>
<td><%= item.getAvailable()%></td>
<td><%= item.getServletConfig()%></td>
</tr>
<%}%>
<tr>
<td height="25" colspan="5">
<input type="submit" name="Submit" value="提交">
/td>
</tr>
<tr>
<td height="31" colspan="5" ><a href="cart.jsp">购物</a>[]<a href="logout.jsp">注销</a></td>
</tr>
</table>
</form>
</center>
</body>
</html>