This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
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

Help iterating through ArrayList of an ArrayList in JSTL  RSS feed

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have an object as such



Now after creating an instance of the above object and populating it from a servlet i am passing it to a jsp as such


Now I really cant read the data from the arraylist in allRows

I am trying something like


But its not working any idea how i can iterate through an arraylist in another arraylist using jstl. Thanks
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


(Possibly if you had better variable names than just "i" and "j", the code you wrote might have looked odd to you.)
 
abani patra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You just need a bit modification to work your code the modified code is as bellow.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
abani patra wrote:Hi,
You just need a bit modification to work your code the modified code is as bellow.

This posted code will not work. The correct code was already posted by Paul.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!