• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 615
  • Last Modified:

Radio buttons

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
Raftor
Asked:
Raftor
1 Solution
 
skyshadowCommented:
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
 
RaftorAuthor Commented:
ok im away for today but i will post more detailed comments tomorrow.
Thanks.

Raftor
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now