• Post Reply Bookmark Topic Watch Topic
  • New Topic

complex c:forEach  RSS feed

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Collection #{myBean.myList}

and want to itereate trough the list via c:forEach, but the first element should not be those from the (first of the) entity, it should be the size of the list (that means):



but this prints out this order (imagine, that myBean.entity.size holds 2 elements:


I want this order:


How can I do that?
[ October 30, 2008: Message edited by: Christophe Verre ]
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nimo,

I don't know the syntax of this stuff, but it looks like your logic is wrong. That's all.

It looks to me like the line



should rather be




Or am I missing something here?

cheers
Darryl
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!