-2
這裏的代碼我想在一個列表
<%@page import="devesh.com.*,java.util.*"%>
<html>
<body>
<form method="POST" action="OutBagAction.jsp">
<%
ArrayList<Bag> list=BagWorker.getAllBag();
%>
<center>
<font face="Times new roman">ItemCode
<%
for(Bag ba:list)
{
int itemcode=ba.getItemcode();
%>
<select name ="itemCode">
<tr>
<option><%= ba.getItemcode()%></option></tr>
</select>
<% } %>
<br><br>
<font face="Times new roman">SampleBy <input type="text" name="sampleBy">
<br><br>
<font face="Times new roman">Color <input type="text" name="color">
<br><br>
<font face="Times new roman">Quantity <input type="text" name="quantity">
<br><br>
<font face="Time new roman">OutDate <input type="date" name="outDate">
<br><br>
<input type="submit" value="Out Bag"></center>
</body>
</html>
我想在一個下拉列表下拉列表,列出我能爲那怎麼辦?
**非常感謝老兄** –