title: JSP request.getParameter string
body: <p>I have the following page in JSP:</p>
  
  <pre><code>&lt;%
      String req = request.getParameter("req");
  
      if (req == "Start")
          // Do something here
  %&gt;
  
  &lt;form&gt;
      &lt;input type="submit" name="req" value="Start" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>But when I press the <em>Start</em> button it seems that <em>req</em> value is not equal to <em>Start</em>, and the code does not enters the <em>if</em> statement.</p>
  
  <p>What can be wrong?</p>