I need your help... I need to get the value selected by a user from the HTML page and pass this value into my servlet program for processing. So I did something like this:
Part of my jsp code:
<select name="tool" id="tool"> <option value=kim>KIM</option> <option value=ontomat>Ontomat Annotizer</option> <option value=gate>GATE</option> </select>
Part of my java class protected void doGet(...) metod:
String s=request.getParameter("tool"); out.println(s); if (s.toLowerCase()=="kim") out.println(s); else out.println("error");
When I select "kim", I want it to print
My problem is that what ever I select it prints out
[what ever I selected]
prints what I selected but "if" part does not work the way I would like it to...
I am new at all this and could really use some help...