Solved

Radio buttons

Posted on 2004-04-27
3
605 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now