In the code you show, NONE of the boxes should be checked.
Are you saying that when you first show the page, they are checked? This
shouldn't be happening at all.
-----Original Message-----
From: Roy K. Mayr R. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 1:45 PM
To: TomcatUser
Subject: checkbox with Tomcat
Sorry, I used wrong subject in last mail....
I have a JSP page with one form and many checkboxs... all with same name
but
diferent value.
For example:
<form method="get" name="formulario" >
<input type="checkbox" name="prueba" value="1">
<input type="checkbox" name="prueba" value="2">
<input type="checkbox" name="prueba" value="3">
<input type="checkbox" name="prueba" value="4">
<input type="checkbox" name="prueba" value="5">
<input type="submit" name="enviar" id="enviar" value="Enviar">
</form>
out.println(request.getParameter("prueba");
When I use Java WebServer, output show every checkbox selected... 2,4,5,
for example.
But when I use Tomcat output only show first checkbox selected... Why ?
What
is wrong ?
Problem is Tomcat or my code?
Thanks
Roy