title: struts 2 Undefined attribute name "var"
body: <p>I am trying to iterate over two 2D arrays <code>Org_Positions_IdTitle</code> and <code>Org_Apps</code> and print out a field but I keep getting the <code>Attribute var invalid for tag iterator according to TLD</code> also in my jsp page the var1 and var2 are underlined and it says on the left Undefined attribute name "var".<br>
  I would be so thankful if you can help me with that.</p>
  
  <pre><code>    &lt;s:iterator value="Org_Positions_IdTitle" var="arr1" &gt;
          &lt;s:iterator value="Org_Apps" var="arr2" &gt;
              &lt;s:if test="#arr1[0] == #arr2[1] "&gt;
                  &lt;s:property value="#arr1[1]" /&gt;     
              &lt;/s:if&gt;
          &lt;/s:iterator&gt;
      &lt;/s:iterator&gt; 
  </code></pre>