How to set selected radio button from the database record?
because i want to modify the record from the database and set it to the html form to let the user to update the personal information.
my code is like this, and i need help on the radio button and combo box.

response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("<h2>Update Student</h2>");

String id;
id = request.getParameter("id");

if(id.compareTo("")==0){
out.println("Please fill in the student ID.");}
else{
try{
String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String url = "jdbc:odbc:StudentDS";
String sql = "SELECT * FROM Student "+
"WHERE StudentID = ?";
Class.forName(driver);
Connection con = DriverManager.getConnection(url);
PreparedStatement stm = con.prepareStatement(sql);

stm.setString(1, id);
ResultSet rs = stm.executeQuery();

String name = "";
String ic = "";

if (rs.next()){
id = rs.getString("StudentID");
name = rs.getString("StudentName");
ic = rs.getString("ICNumber");
}
out.printf(
"<form action='UpdateStudent' method='post'>"+
"<table>"+
" <tr>"+
" <td>Student ID :</td>"+
" <td>%s</td>"+
" </tr>"+
" <tr>"+
" <td>Student Name :</td>"+
" <td><input type='text' name='name' value='%s'/></td>"+
" </tr>"+
" <tr>"+
" <td>Ic Number :</td>"+
" <td><input type='text' name='ic' value='%s'/>
</td>"+
" </tr>"+
"</table>"+
"<input type='submit' value='Update'/>"+
"<input type='reset' value='Reset'/>"+
"<input type='hidden' name='id' value='%s'/>"+
"</form>",
id,name,ic,id
);
rs.close();
stm.close();
con.close();