Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to send an array from a list of checkboxes

843835Jun 4 2003 — edited Jun 5 2003
Hello:

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 ..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2003
Added on Jun 4 2003
4 comments
278 views