I'm trying to assign the selected value of a dropdown list to a java variable.
The values which the options contain are fetched from the database, but I don't have any clue how to do this.
Say for example I have this:
<html>
<head>
</head>
<body>
<select>
<option>fetched from database<option>
</select>
<% //The java code
String select=//how can i get selected value here
%>
</body>
</html>