Rakesh Bhat wrote:

> Hi Dirk,
> First place , is it ok  to give same name for 3  check boxes ?
> How does the server context knows u have checked first,second or third checkbox if
> the name is same ?
> For radio buttons u can do so because only one will be selected at any time.
> But in case of check boxes , i think name should be unique.
>
> Am i making sense ?
>
> Regds
> Rakesh.
>
> Lesley Eadie wrote:
>
> > Your set method has to be an array to pick up all categories.  Sorry for
> > annoying you if it already is.  :-)
> >
> > ----- Original Message -----
> > From: "Dirk Zimmermann" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 04, 2000 8:57 AM
> > Subject: checkboxes and beans
> >
> > > Hi folks,
> > >
> > > given the following simple HTML:
> > >
> > > <!-- ... -->
> > > <input type=checkbox name="category" value="5">BMW<br>
> > > <input type=checkbox name="category" value="6">Porsche<br>
> > > <input type=checkbox name="category" value="7">Jaguar<br>
> > > <!-- ... -->
> > >
> > > My beans's method setCategory() will be only called with exactly ONE
> > > value. That is, if I check all cars (BMW, Porsche and Jaguar) my bean
> > > will only be called this way: setCategory(5).
> > >
> > > Am I missing some HTML features?
> > >
> > > I'm using tomcat 3.1
> > >
> > > --
> > >                   /// Dirk.
> > >
> > >
> > ===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > 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
> > >
> >
> > ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> > 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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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

Reply via email to