Это моя форма в 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