Solved

Radio buttons

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

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

Gain an elementary understanding of Blockchain technology.
Let’s face it: one of the reasons your organization chose a SaaS solution (whether Microsoft Dynamics 365, Netsuite or SAP) is that it is subscription-based. The upkeep is done. Or so you think.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

724 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