<%@ page contentType="text/html; charset=gb2312" errorPage="" %>
<%@ page import="aa.*,java.util.*" %>
<jsp:useBean id="products" class="aa.Products" scope="session"/><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<%@ include file="header.jsp"%>
<form action="cart.jsp" method="get">
<table width="75%" border="1" bordercolor="#006633">
<tr bgcolor="#999999">
<td>id</td>
<td>名称</td>
<td>价格</td>
<td>是否有库存</td>
<td>出版社</td>
</td>
<%
java.util.Vector v=producers.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.getProducer()%> </td>
</tr>
<%}%>
<tr align="left"><td colspan="5"><input=submit value="add" name="action"></td></tr>
<tr align="left"><td colspan=5><a href="cart.jsp">购物车</a>『』<a href="logout.jsp">注销</a></td></tr>
</table>
</form>
</center>
<%@ include file="tail.jsp"%>
</body>
</html>
哪里有错?还请大家给予恢复,谢谢
<%@ page import="aa.*,java.util.*" %>
<jsp:useBean id="products" class="aa.Products" scope="session"/><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<%@ include file="header.jsp"%>
<form action="cart.jsp" method="get">
<table width="75%" border="1" bordercolor="#006633">
<tr bgcolor="#999999">
<td>id</td>
<td>名称</td>
<td>价格</td>
<td>是否有库存</td>
<td>出版社</td>
</td>
<%
java.util.Vector v=producers.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.getProducer()%> </td>
</tr>
<%}%>
<tr align="left"><td colspan="5"><input=submit value="add" name="action"></td></tr>
<tr align="left"><td colspan=5><a href="cart.jsp">购物车</a>『』<a href="logout.jsp">注销</a></td></tr>
</table>
</form>
</center>
<%@ include file="tail.jsp"%>
</body>
</html>
哪里有错?还请大家给予恢复,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货