I want to use a dropdown menu on my JSP but... I have no idea how to capture the Value of the Selected Item and Pass it on to my Servlet and have some QUERY to add the value to my database.
Can you give me some idea or clue how to code it?
PS. I also need items at dropdown menu converted into an Integer cause i'll be adding it to the stored data at my database.
Will this be hard for a starter like me? should I use Textbox and let the user input an INTEGER manually instead of a Dropdown menu?
Thanks a lot in advance :)
My Jsp Menu is like this:
<body>
<form action="AddPoints">
<table width="408" border="0">
<tr>
<td width="402"><h3 align="center">Enter Points:</h3>
<h3 align="center">
<label for="Points"></label>
<select name="Points" size="1" id="Points">
<option value="5" selected>5</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
</select>
<br/>
</h3>
<h3 align="center"><strong></strong>
<input type="submit" name="AddPoints" id="AddPoints" value="Add Points">
</h3></td>
</tr>
</table>
</form>
</body>
Also I am wondering if the value at this line: <option value="25">25</option>
is the real value that my servlet can capture?
Sorry if i have so many questions... :)