title: Check stat.count value in arraylist in <s:iterator> tag for struts 2
body: <pre><code>&lt;% System.out.println("These indexed shall be shown on gui "+(ArrayList)request.getSession().getAttribute("selectedIndexes")); %&gt;   // ArrayList value can be 2,3,5,9
  
    &lt;s:iterator var="itr" value="#session.completeArrayList" status="stat"&gt;
   &lt;s:if &gt; //if stat.count value present in arraylist(selectedIndexes), then go to if loop
   &lt;/s:if
  
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>I dont know how to check <code>%{#stat.count}</code> value in <code>arraylist{selectedIndexes}</code> in <code>&lt;s:if&gt;</code> loop.
  How shall i do this</p>