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..

Recommended Answers

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.