日期:2014-05-20 浏览次数:20747 次
private Integer attendRecordId; private Integer applicationId; private Integer attendPercentage; private Integer cpdId; private Integer mpfCpdCore; private Integer mpfCpdNonCore; private Integer cpt; private String createdBy; private Timestamp createDate; private Set<TrainingCourseClassAttendPeriod> trainingCourseClassAttendPeriod = null; set/get省略
private Integer id; private Integer attendRecordId; private Timestamp attendDate; private Boolean attendAmSession; private Boolean attendPmSession;
public List<Role> selRole(int currentPage) { session = sf.getCurrentSession(); Query query = session.createQuery("from Role"); query.setFirstResult((currentPage - 1) * RPAGESIZE); query.setMaxResults(RPAGESIZE); List<Role> list = query.list(); for (int i = 0; i < list.size(); i++) { Iterator it = list.get(i).getStates().iterator(); while (it.hasNext()) { State s = (State) it.next(); } } return query.list(); }
------解决方案--------------------
意思是提交保存?不是name与之相对应不就好了
<s:iterator value="firstList" status="stu" var="xxx">
<input name="firstList[${stu.index}].xxx1"/>
<s:iterator value="xxx.secondList" status="stud" var="xxxx">
<input name="firstList[${stu.index}].secondList[${stud.index}].xxxx1" />
</s:iterator>
</s:iterator>