I have the following page in JSP:
<%
String req = request.getParameter("req");
if (req == "Start")
// Do something here
%>
<form>
<input type="submit" name="req" value="Start" />
</form>
But when I press the Start button it seems that req value is not equal to Start, and the code does not enters the if statement.
What can be wrong?
You should write
instead of