problem with retrieving data from db.
Hi..
In my jsp page i have a dropdown menu which shows all the serial no: of routers in the database.So each time i select the dropdown menu the page is got submitted using the onchange(). When i click one of them i need to print all other attributes of that router in my page twice..one in a textbox and other in the page. In the text box it is working fine but in the page it is showing the attributes which i selected previously.
The code for dropdown is like this
<select name="selectrouter" size="1" id="selectrouter" onChange="validate1()">
<option value="select">--select--</option>
<%=upd.getRouterList(request.getParameter("selectrouter"))%>
</select>
getRouterList will return the values in serial no. field in database.
the text box which i populate has coding like this.
<input name="snoh" type="text" id="snoh" value="<%if(upd.getSno()!=null){%><%=upd.getSno()%><%}%>">
like this so many text boxes are there...
I print the same data in the page like this
<%if(upd.getSno()!=null){%>
<%=upd.getSno()%>
<%}%>
But this code is showing the serial no. which i selected previously...
Please help me out..
Thanks in advance

