This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help iterating through ArrayList of an ArrayList in JSTL

 
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: 21892
36
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: 65537
108
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.
 
Do you want ants? Because that's how you get ants. And a tiny ads:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!