File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes nested JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "nested JSP" Watch "nested JSP" New topic

nested JSP

Marko Debac
Ranch Hand

Joined: Aug 21, 2006
Posts: 121
Hi to all,
please somebody help me,

I have class Mom:

and I have class Child:

I have similar database where one mom can have multiple child. In JSP, I need to fill up those objects with data from database, and set them in session scope. I can do everything, except to filling up with lots of child.
I fill up Mum like this

and thats it, and now similarly for child, but here is a problem, I will have lots of row with child, and I must fill up for every child Arraylist children, so what I must put and where?

Here is the child (witch is not good code):

I think, that I must put it in here another

and one more <c:forEach>, to set every child in list children, but I cant figure out.

Please help
I agree. Here's the link:
subject: nested JSP
It's not a secret anymore!