title: How to evaluate struts 2 s:if?
body: <p>i have an object called 'item'.
  it has a property called 'type'</p>
  
  <p>when i do this:</p>
  
  <pre><code>&lt;s:property value="item.type" /&gt;
  </code></pre>
  
  <p>i get this:
  Q</p>
  
  <p>ok, so i can read the value, but when i try this:</p>
  
  <pre><code>&lt;s:property value="item.type == 'Q'" /&gt; 
  </code></pre>
  
  <p>i get an empty string</p>
  
  <p>this give me an empty string:</p>
  
  <pre><code>&lt;s:property value="%{#item.type == 'Q'}" /&gt;
  </code></pre>
  
  <p>i even tried this:</p>
  
  <pre><code>&lt;s:property value="item.type.equals('Q')" /&gt;
  </code></pre>
  
  <p>but i got this string:
  false</p>
  
  <p>how do i get 'true'?</p>