HI All,
I have one entry JSP page.
There I have one combo box, containing the empIDs.
On selecting one value from that combo box, all the other text box need to be populated by the values from the database according to the empID selected from the combo box.
Now I am able to populate all the text boxes.
But the first combobox(empID) needs to be stay selected (the value which one is selected initially) after the text boxes being populated.
I am unable to do it.
Following is the code from JSP page:
After populating all the text boxes, the combo box shows "Select EmpID".Code:<spring:bind path="Data24by7.empNo"> <TD align="left"> <select name="empNo" onChange="frm_submit()"> <option value ="0">Select EmpID</option> <c:forEach var="data24by7" items="${Model.empids}"> <option value ="<c:out value="${data24by7.empNo}"/>"><c:out value="${data24by7.empNo}"/></option> </c:forEach> </select> <!--<input type="text" name="empNo" maxlength=10 >--> </TD> </spring:bind>
Now what should I do to make it selected.
Please help me...
It will be a great help for me.


Reply With Quote