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

[1313 byte] By [eldho_frsa] at [2007-11-27 5:54:05]
# 1
Some body please help me..
eldho_frsa at 2007-7-12 15:48:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi allI want this very soon.. please help..
eldho_frsa at 2007-7-12 15:48:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Need complete code for analysis....the following code looks like a mess...but need the complete code to have a look...

<select name="selectrouter" size="1" id="selectrouter" onChange="validate1()">

<option value="select">--select--</option>

<%=upd.getRouterList(request.getParameter("selectrouter"))%>

</select>

anurag_dasha at 2007-7-12 15:48:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
And please use code tags; it's hard to read without and I, at least, don't even feel like trying to understand what's happening here...
nogoodatcodinga at 2007-7-12 15:48:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...