獲取數據這是我在JSP如何ArrayList中從JSP
<form action="submit">
<tr class="row" id="item1">
<td><input type="text" name="type" class="type" style="width: 50px"/></td>
<td><input type="text" name="color" class="color" style="width: 50px"/></td>
<td><input type="text" name="qty" class="qty" style="width: 50px"/></td>
<td><input type="text" name="unitprice" class="unitPrice" style="width: 50px"/></td>
</tr>
...
<tr class="row" id="itemN">
<td><input type="text" name="type" class="type" style="width: 50px"/></td>
<td><input type="text" name="color" class="color" style="width: 50px"/></td>
<td><input type="text" name="qty" class="qty" style="width: 50px"/></td>
<td><input type="text" name="unitprice" class="unitPrice" style="width: 50px"/></td>
</tr>
</form>
我要取的可能含有1到N個數據的形式和每個項目contais type
color
qty
和unitprice
。我想將所有這些數據存儲在ArrayList變量中。 如何做到這一點?
通常XWork的類型轉換這樣做。 –
XWork顯示爲 導入錯誤 'import com.atlassian.confluence.core.ConfluenceActionSupport'; – xrcwrn