you can genrate the check  boxes in a loop like this:
 <%
while  (resultSet.next()){

%>

<input type ="check box" value = "resultSet.getvalue" <%if
(resultSet.someproperty == true){out.println("selected")}%> >
<%
}
%>
this way you can select a heck box depending on the property with the
resultSet returned by the database


i hope this helps
Murtaza

-----Original Message-----
From: Mistroni Marco <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, March 11, 2000 2:00 AM
Subject: CHECKBOX PROBLEM


hi all,
         i am experiencing a problem with checkboxes:
i have a list of users, each of them is represented by a check box...
the number of the check boxes is dynamic, since i am loading it from a
database that can be modified
now, i would like, for example, to select multiple check boxes at the same
time (corresponding to multiple users)....... and, according to the number
of the users selected, set
a property in the JavaBean that contains all  the users selected...... how
can i do that???
is it possible??
anyone can give me an idea??
thanx in advance
regards
        marco

===========================================================================
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