title: Strange outcome from string comparison in jsp scriptlet
body: <p>I have this code in my .jsp file:</p>
  
  <pre><code>&lt;%= formBean.getMonth() == "default" %&gt;
  </code></pre>
  
  <p>I print the value first to make sure it equals to "default":</p>
  
  <pre><code>&lt;%= formBean.getMonth() %&gt;
  </code></pre>
  
  <p>and it does, but when I compare it to "default" as I do above it prints false. I am puzzled what
  could the problem be.</p>
  
  <p>Thanks</p>