Question: how to retain selected value of dropdown in jsp after submit?
Answer: <select size="1" name="ddlSelect" id="ddlSelect" onchange="fnChange(this.value)" >
<option value="0">--- Select One ---</option> <%
String selectedname="";
ArrayList<Profile> userlist = Controller.UserNameList(Profile.userId,year);
for (Profile j : userlist) {
selectedname = (!