Win a copy of Murach's Python Programming this week in the Jython/Python 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: 22185
38
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: 65825
134
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!