tomcat-dev mailing list archives

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

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

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.

Paul. 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message