• Post Reply Bookmark Topic Watch Topic
  • New Topic

jstl nested foreach help  RSS feed

 
doug parker
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a method which returns a list of objects. each object contains a list as well. how do i iterate over each object and output it and the list it contains using the foreach tag?



I'd like to output the following with NY and AZ being states

NY
albany
new york
rochester
AZ
tempe
chandler
mesa
phoenix
 
Balasubramani Dharmalingam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!