sending a html select box to a servlet

I have a servlet which list numbers and has a drop down box that lets users chnage the number to another one, the user then clicks update and the values should be passed onto the next page.

my select box looks like this:

"<td>" +"<select name=\"select\">" +

" <option value=\"1\">1</option> "+

" <option value=\"2\">2</option> "+

"<option value=\"3\">3</option> "+

" <option value=\"4\">4</option> "+

" </select></td>" +

I then want to use a hidden type to pass that value but i dont know how i have tried

<INPUT TYPE=\"HIDDEN\" NAME=\"priority\" " +

"VALUE=\"" + select +"\">\n" +

But that does not work can anybody help me?

[1029 byte] By [ajrobsona] at [2007-11-26 14:57:15]
# 1
Why do you want to use the hidden field, when the same value gets passed anyway when the button is clicked. The value that gets passed will be the one from "select".You won't be able to set the value of the hidden type on the same page until the page is submitted.
appy77a at 2007-7-8 8:45:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...