tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Wallace" <>
Subject control Array
Date Mon, 06 Oct 2003 00:59:36 GMT
	How might I request a series of checkboxes that all share the
same name? E.g:

<input type="checkbox" name="myCheck" value="01">
<input type="checkbox" name="myCheck" value="02">
<input type="checkbox" name="myCheck" value="03">

I understand in VB something called a control array exists, that
retrieves the checked checkbox values and stores them in an array. This
is also possible in CFM. Is there the equivalent in Java/HTTP? Something
where I DON'T have to do:

<input type="checkbox" name="myCheck1" value="01">
<input type="checkbox" name="myCheck2" value="02">
<input type="checkbox" name="myCheck3" value="03">

	for (int i = 0;i < noofCheckboxes; i++) {
		myarr[i] = request.getParameter("myCheck" + i);

Thanks for any replies, or direction towards doco re this.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message