Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how iterate arraylist included in a object with c:for  RSS feed

 
Manuel Jordan
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys

i have this case:
for payments each object (a debt) can has more details about part of payment (Set object) of the object

so, in the next part of code jsp,
the first for represents the list of the objects and the nested for (second) represents the details or the Set objects for each Object of the first for

all the objects and its details are already initializated by hibernate , so


<c:forEach items="${hijosCorrienteProveedoresHijosHijos.cuentaProveedores}" var="mihijo" varStatus="status" >
in the bold part i recieve this error message



how i can resolve this???

thanks for advanced
[ March 21, 2007: Message edited by: Bear Bibeault ]
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's expecting a collection, and it does not seem like that's what it's getting back.
 
Joan Horta Tosas
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If they are nested one inside the other, change it for:
 
Manuel Jordan
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joan Horta Tosas

i found the same soltution and you are right!!

thanks a lot for your time
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!