Yes, this is one possible way, but in ASP I can do something like this
For i=1 To Request.QueryString("name").Count to get the values.
Or in PHP I can write
<INPUT TYPE=CHECKBOX NAME="name[]" VALUE=something>
<INPUT TYPE=CHECKBOX NAME="name[]" VALUE=somethingelse>
and then
for ($i=0; $i<Count($name); $i++):
so I thought that it's possible to do this also in JSP somehow.
But thanks anyway.
Btw. don't you know where can I read something about the REQUEST object?
Martin
----- Original Message -----
From: "Dubreuil, Jason" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 8:59 PM
Subject: Re: getting paramater names from checkboxes
> Add a number to name of the CheckBox if they are created dynamically.
Then
> loop through all of them.
>
> <input type=chceckbox name=select1 value=a>
> <input type=chceckbox name=select2 value=b>
> <input type=chceckbox name=select3 value=c>
>
> String whatToDo = request.getParameter("select" + inum);
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets