• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

nested JSP

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Attractive, successful people love this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic