File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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..

subject: Iterator inside iterator
It's not a secret anymore!