This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Iterator inside iterator" Watch "Iterator inside iterator" New topic
Author

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.
URGENT!
Anshul K Jain
Greenhorn

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..

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