I suppose you can simply use your key in the value option and make a query with the parameters.

<select>
...
<option value="Your Key">Your Name</option>
...
</select>

P. Tréhet

Yogesh Agarwal wrote:

 Hi all,I have a problem and I am stuck with it for quite sometime now. I am using JDBC in servlets and I have a drop down menu where the options are read from the database. Now I want to read the selectedIndex from the drop down menu and use it as a key to retrieve data from the tables. I am not able to figure out how do I read the selectedIndex in a servlet. Any detailed help is appreciated. TIAYogesh

Reply via email to