<body> <table align="center" id="tid">
<caption>你购买的物品</caption>
<tr>
<td>ID</td>
<td>书名</td>
<td>作者</td>
<td>价格</td>
<td>数量</td>
<td>操作</td>
</tr>
<%
Integer nums=0;
Map<Integer,CartItem> map=(Map<Integer,CartItem>)session.getAttribute("carts");
Set<Integer> set=map.keySet();
for(Integer inte:set)
{%>
<tr>
<td><%=map.get(inte).getBookInfo().getBid() %></td>
<td><%=map.get(inte).getBookInfo().getBname() %></td>
<td><%=map.get(inte).getBookInfo().getBautbor() %></td>
<td><%=map.get(inte).getBookInfo().getBprice() %></td>
<td><input type="text" name="count" value="<%=map.get(inte).getBooksount() %>" size=2 id==="num<%=map.get(inte).getBookInfo().getBid() %>"/></td>
<td><a id="nums" href="UpdateServelt?bookid=<%=map.get(inte).getBookInfo().getBid() %>&bcount=????获取文本款的数量在map对它的值进行修改(帮我啊?)??????"> 更改数量</a> </td>
</tr>
<%
}
%>
</table>
就是要获取当前文本中的数量传到UpdateServlet中去?想了好久都没搞出来,急,慌
<caption>你购买的物品</caption>
<tr>
<td>ID</td>
<td>书名</td>
<td>作者</td>
<td>价格</td>
<td>数量</td>
<td>操作</td>
</tr>
<%
Integer nums=0;
Map<Integer,CartItem> map=(Map<Integer,CartItem>)session.getAttribute("carts");
Set<Integer> set=map.keySet();
for(Integer inte:set)
{%>
<tr>
<td><%=map.get(inte).getBookInfo().getBid() %></td>
<td><%=map.get(inte).getBookInfo().getBname() %></td>
<td><%=map.get(inte).getBookInfo().getBautbor() %></td>
<td><%=map.get(inte).getBookInfo().getBprice() %></td>
<td><input type="text" name="count" value="<%=map.get(inte).getBooksount() %>" size=2 id==="num<%=map.get(inte).getBookInfo().getBid() %>"/></td>
<td><a id="nums" href="UpdateServelt?bookid=<%=map.get(inte).getBookInfo().getBid() %>&bcount=????获取文本款的数量在map对它的值进行修改(帮我啊?)??????"> 更改数量</a> </td>
</tr>
<%
}
%>
</table>
就是要获取当前文本中的数量传到UpdateServlet中去?想了好久都没搞出来,急,慌
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货