I am having problem in displaying the gender properly. I have selected Female as the gender option but when I edit the page it turns out that the first option I see is Male and not Female. Should I use if statemnt? That if Female is selected in the option it should then display Female as the first option then second is Male... I am not sure how to create an if statement in a Servlet with an html code inside the out.println. Thanks.
out.println("<td>Gender:</td>"); out.println("<td><select name='gender' ><option>"+rs.getString(7)+"</option><option>Male</option><option>Female</option></select></td>");