How to use the select tag in Struts2?

Posted by Mes on Stack Overflow See other posts from Stack Overflow or by Mes
Published on 2010-04-13T14:03:07Z Indexed on 2010/04/13 14:13 UTC
Read the original article Hit count: 428

Filed under:
|
|

I have

class A {
   private String field1;
   private String field2;
   private B b;
}

class B {
   private String field3;
}

List<A> myList;

How can I access the field3 using the myList?

This would work for field1 and field2, but how about field3?

 <s:iterator value="myList">
                <tr>
                    <td><s:property value="field1"/></td>
                    <td><s:property value="field2"/></td>

                </tr>
            </s:iterator>

© Stack Overflow or respective owner

Related posts about struts2

Related posts about select