Solved

Radio buttons

Posted on 2004-04-27
3
609 Views
Last Modified: 2010-04-01
How can i use radio buttons in a list where the number of records in the list is not a set value.  I need to know how to display the radio buttons and how to retrieve the values on the next page.  The important part is the fact that the list is dynamic so there can be any number of records displayed.

Thanks
Raftor.
0
Comment
Question by:Raftor
3 Comments
 
LVL 32

Expert Comment

by:ldbkutty
ID: 10933431
0
 

Accepted Solution

by:
skyshadow earned 35 total points
ID: 10935544
the number of records is retrieved from the database ? if it is, then do a select statement to retrieve the number of records and then use

while (rs.next ()) {
  String name = rs.getString ("name"); ----> this has to be done, to identity the set of radio buttons
  out.println ("<input type='radio' name='" +name +"'>");
}

of course this is just an example. tell us more about the function u need, and we can help u further
0
 

Author Comment

by:Raftor
ID: 10936978
ok im away for today but i will post more detailed comments tomorrow.
Thanks.

Raftor
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hashcode is calculated on the basis of value object 2 118
reflection example 3 112
how to add new optional parameter to JSP 1 49
how to debug htl and js pages 8 39
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
Read about why it is more lucrative for an IT company to participate in government projects.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question