title: Struts2: test equality of <s:property/> to a variable from action
body: <p>I am trying to test:</p>
  
  <pre><code>&lt;s:if test="%{selectedLanguage == &lt;s:property/&gt;}"&gt;
  </code></pre>
  
  <p>Where selectedLanguage comes from the action, and s:property is the current object.
  In a iterator like this:</p>
  
  <pre><code>&lt;s:iterator value="languages"&gt;
      &lt;s:if test="%{selectedLanguage == &lt;s:property/&gt;}"&gt;
          &lt;option id="&lt;s:property/&gt;" selected&gt;&lt;s:property/&gt;&lt;/option&gt;
      &lt;/s:if&gt;
      &lt;s:else&gt;
          &lt;option id="&lt;s:property/&gt;"&gt;&lt;s:property/&gt;&lt;/option&gt;
      &lt;/s:else&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>Obviously,it doesnt work. How can I solve?</p>