how do I get parameters from a drop down menu in JSP?
I've got a drop down menu with the following code:
and then:
could I do an if else statement? something like:
I know my syntax is bad, sorry.
I've got a drop down menu with the following code:
Code:
<select name=server">
<option value="server1"> Server 1
<option value="server2"> Server 2
</select>
and then:
Code:
String server=request.getParameter("server");
could I do an if else statement? something like:
Code:
if(server=="server1"){
...
}
I know my syntax is bad, sorry.