views:

41

answers:

0
<s:iterator var="parent" value="studentList">
   <s:iterator var="child1" value="#parent.subjectList">
       <s:property value="%{subjectName}" />: 
       <s:textfield id="subject" name="%parent.subject.id}" theme="simple" />
   </s:iterator>   
</s:iterator>

I have a jsp page with the above code. I have two lists i) studentList, ii) subjectList. For each student there is a subjectList. Now I have to save the marks. How can I get these values in my action ? I am using Struts2. Thanx in advance.