aspose file tools*
The moose likes Struts and the fly likes Iterator inside iterator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Iterator inside iterator" Watch "Iterator inside iterator" New topic

Iterator inside iterator

Ashish Malik
Ranch Hand

Joined: Jul 11, 2010
Posts: 50
I have written following code inside my jsp:

'listofStudents ' is ofcourse the list of 'student' object.
'student' object contains 'studentCourses' as set of 'Courses' object that contains courseName.

Now the problem is, rendered page does not prints out courseName(s). All other things such as 'rollNum' are printing perfectly.
Anshul K Jain

Joined: Jul 24, 2010
Posts: 20

Hi Ashish,

As 'student' object contains 'studentCourses' as set so student courses is available only when you say student.studentCourses i.e

May it will helps you..

I agree. Here's the link:
subject: Iterator inside iterator
Similar Threads
<s:select in <s:iterate tag displaying with comma seperated value
<jsp:setProperty> sets null values in the bean
struts-2 iterator issue...
JSF : redirect errors to error page
RadioButton with List Struts 2