Ellusionist
Jun 2nd, 2006, 04:39 AM
Hi,
In my jsp file i get data which comes from a database and display it in a table.
There are three columns of data (comes from database) and in the fourth column I have a textbox.
The problem is that all the textboxes will have the same name because they are created in the loop.
Is there a work around?
Thanks.
<c:forEach items="${ol.orders}" var="ordersUndel">
<tr>
<td>
<c:out value="${ordersUndel.DelNum}" />
</td>
<td>
<c:out value="${ordersUndel.OrdNum}" />
</td>
<td>
<c:out value="${ordersUndel.dataNum}" />
</td>
<td>
<input type="text" size="10" maxlength="10" name="info"/>
</td>
</tr>
</c:forEach>
In my jsp file i get data which comes from a database and display it in a table.
There are three columns of data (comes from database) and in the fourth column I have a textbox.
The problem is that all the textboxes will have the same name because they are created in the loop.
Is there a work around?
Thanks.
<c:forEach items="${ol.orders}" var="ordersUndel">
<tr>
<td>
<c:out value="${ordersUndel.DelNum}" />
</td>
<td>
<c:out value="${ordersUndel.OrdNum}" />
</td>
<td>
<c:out value="${ordersUndel.dataNum}" />
</td>
<td>
<input type="text" size="10" maxlength="10" name="info"/>
</td>
</tr>
</c:forEach>