private TblStudyType tblStudyType;
private String typeName;
private String isLeaf;//0是叶子,1是父节点
private String commCreator;
private String commCreateTime;
private Long commRecordIdenty;
private String commEditionId;
private Long commEditionNo;
private Long commBuinessOrder;
private String commOrgLevel;
private String commOrgIdenty;
private String commChangeNotice;
private Long typeLevel;
private Set<TblStudyType> tblStudyTypes = new HashSet<TblStudyType>(0);
private Set<TblStudyLesson> tblStudyLessons = new HashSet<TblStudyLesson>(0);
实体类如上所示,是一个比较普通的实体,将该实体装载进一个名为list的list集合中,在页面上开始迭代:
<body>
<s:iterator value="list" var="a">
<s:property value="#a.typeName"/>-------
<s:iterator value="#a.tblStudyLessons" id="test">
<s:property value="#test.lessonName"/>
</s:iterator>
</s:iterator>
</body>