<table border="1" align="center">
<tr>
<th>产品编号</th>
<th>产品类别</th>
<th>产品名称</th>
<th>产品单价</th>
<th>产品数量</th>
</tr>
<%while(rs.next()){ %>
<tr bgcolor="lightblue">
<td><%=rs.getString("p_id) %></td>
<td><%=rs.getString("p_type) %></td>
<td><%=rs.getString("p_name) %></td>
<td><%=rs.getFloat("p_price) %></td>
<td><%=rs.getInt("p_quantity) %></td>
</tr>
<%} %>
</table>
<%
pstmt.close();
pstmt2.close();
conn.close();
}
catch(Exception e)
{
out.println(e.toString());
}
%>
</body>
</html>
<tr>
<th>产品编号</th>
<th>产品类别</th>
<th>产品名称</th>
<th>产品单价</th>
<th>产品数量</th>
</tr>
<%while(rs.next()){ %>
<tr bgcolor="lightblue">
<td><%=rs.getString("p_id) %></td>
<td><%=rs.getString("p_type) %></td>
<td><%=rs.getString("p_name) %></td>
<td><%=rs.getFloat("p_price) %></td>
<td><%=rs.getInt("p_quantity) %></td>
</tr>
<%} %>
</table>
<%
pstmt.close();
pstmt2.close();
conn.close();
}
catch(Exception e)
{
out.println(e.toString());
}
%>
</body>
</html>