Hi Rakesh,
It's perfectly allright to give the same name for 3 check boxes from
html, and it's allright from your program logic because they represent
a logical entity (just imagine it as choosing some cars from a set of
cars).
Your bean's set-Method will be called with an array as parameter,
representing the choice the user has made (the cars he wants).
public void setCategory(int ids[]) { ... }
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.
--
/// 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