tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jann VanOver <Jann.VanO...@loudeye.com>
Subject RE: checkbox with Tomcat
Date Tue, 28 Aug 2001 20:50:46 GMT
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:sysrom@uapar.edu]
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


Mime
View raw message