Solved

Radio buttons

Posted on 2004-04-27
3
610 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
sortaSum challenge java 17 174
How to set default webapp for host 6 47
print map entry 34 75
jsp error 6 43
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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