drop down submit

Hi all,I have two drop down. When i select first, I submit the drop down using js and it populates the next one..This works.The problem is my first drop down is not showing the selected item instead it reset to its initial state..Could anyone help me..
[280 byte] By [a1ba] at [2007-11-27 7:53:06]
# 1
hi,when u submit ur page while selecting in ur list.. get the form values using request.getParameter();and populate the value at the end of ur page code with javascriptregards-venkat
noveleraa at 2007-7-12 19:34:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks for ur reply,i am getting in request.getParameter..But how do i populate the first drop down..Could u give me an example ..not fully just the particular.It would be grateful.
a1ba at 2007-7-12 19:34:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

hi

store the request.getParameter in a variable and at the end of code

String st=request.getParameter("select1");

write

out.println("<script>form1.select1.value="+st+"</script>");

put according to ur condition so it works fine

regards

-venkat

noveleraa at 2007-7-12 19:34:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Iam not able to get in first drop down..Is there any other solution?Pls tell me
a1ba at 2007-7-12 19:34:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
could anyone help me?
a1ba at 2007-7-12 19:34:22 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...