This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use multiple forEach Loops in EL?

 
aatish pandya
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Output - Duplicate Records, see attachment!
CT_OtPt.jpg
Output
[Thumbnail for CT_OtPt.jpg]
 
Piyush Joshi
Ranch Hand
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just have to place your <td>'s at right places. Besides it usage of forEach is just fine.
 
aatish pandya
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Piyush,

I have tried all possible combinations for the forEach as well as the TD's, but the output's are abnormal. I have attached 2 such output's. Can you help getting it right please?
CT_OtPt.jpg
op1
[Thumbnail for CT_OtPt.jpg]
CT_OtPt_Nk.jpg
op2
[Thumbnail for CT_OtPt_Nk.jpg]
 
Piyush Joshi
Ranch Hand
Posts: 207
Eclipse IDE Firefox Browser jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this should work:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64701
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the HTMl that is being produced? That will tell you what's wrong.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic