title: How to use the iterator tag in Struts2?
body: <p>I have </p>
  
  <pre><code>class A {
     private String field1;
     private String field2;
     private B b;
  }
  
  class B {
     private String field3;
  }
  
  List&lt;A&gt; myList;
  </code></pre>
  
  <p>How can I access the field3 using the myList?</p>
  
  <p>This would work for field1 and field2, but how about field3?</p>
  
  <pre><code> &lt;s:iterator value="myList"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;s:property value="field1"/&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;s:property value="field2"/&gt;&lt;/td&gt;
  
                  &lt;/tr&gt;
              &lt;/s:iterator&gt;
  </code></pre>