0

hi
can any one please help me how to retieve dynamically loaded data in a html radio button in to jsp page..
actually i tried to load user account no from database in to radio buttonin html..this worked perfect .. but upon clicking the submit button i want to get the details of the person with that account no from the database and i have to delete the same from the database if needed..

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by reshmajohney
1

When you submit to the next page read the value of the radio button and query the database based on that number. Then display the data from the DB.

What code did you use to display the radio buttons. I assume that the value of the radio buttons are the number(id) of the account.

<input type="radio" name="radioAccountNo" value="<%=accountNum%>" />

And the above is in a for loop with the name being the same and you change only the value.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.