日期:2014-05-18  浏览次数:20767 次

关于JSP中迭代问题
JSP中迭代这个对象sequences的List集合,?那里我需要展示出另一个对象中的属性,他们之间的关系就是一对多的关系,sequence中有一个set集合,如下!

  <s:iterator value="#request.sequences" var="item">
                    <tr>
                     <th style="width:20px"><input type="checkbox" name="ids" value="${item.sequenceId }"></th>
                     <td>${item.accession }</td>
                     <td>${item.sequenceType }</td>
                     <td>${item.host }</td>
                     <td>${item.genotype }</td>
                     <td>${item.subtype }</td>
                     <td>${item.serotype }</td>
                     <td>${item.subGenomicRegion }</td>
                     <td>${item.length }</td>
                     <td>${item.proteinName }</td>
                     <td>
                     ??????
                     </td>
                    </tr>
                    </s:iterator>

实体类如下

public class TbSequence implements java.io.Serializable {

private Integer sequenceId;
private String sequenced;
private TbUser tbUserByUpdatedId;
private TbUser tbUserByCreatedId;
private TbClinicPatientBasicInfo tbClinicPatientBasicInfo;
private TbClinicTherapy tbClinicTherapy;
private String accession;
private String molecularType;

private Set<TbSequencePubinfo> tbSequencePubinfos = new HashSet<TbSequencePubinfo>(
0);
private Set<TbSequenceFavorite> tbSequenceFavorites = new HashSet<TbSequenceFavorite>(
0);
private Set<TbSample> tbSamples = new LinkedHashSet<TbSample>(0);

上面???这个地方就是要填入这个实体类中tbSequencePubinfos  set集合中属性。请问怎么写....
action中我查询的是sequences这个实体类的List,