how to send an array from a list of checkboxes
843835Jun 4 2003 — edited Jun 5 2003Hello:
I have a list of checkboxes that users can select. Each checkbox is numbered from 1-n. For each checkbox a user selects, I want to send a file name and a path to a servlet. What is the best way?
Here is the JSP I have so far. It displays a list of checkboxes with file names and paths, and labels each checkbox 1-n:
<c:forEach items="${requestScope.modifiedFiles}" var="current">
<tr>
<td>
<input type="checkbox" name="submitFiles"
value="<jsp:getProperty name="counter" property="count" />" >
<!-- increments 1-n to identify each checkbox -->
</td>
<td> <img src="images/fiicon.gif"> </td>
<td> <c:out value="${current.fileName}" /> </a> </td>
</tr>
</c:forEach>
Thanks in advance ..