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

How to iterate List of List items of Mapped objects in JSP?  RSS feed

 
Laxman Chowdary
Greenhorn
Posts: 21
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a requirement of displaying data from List<List<Map>> in JSP. so how to do it in JSP?
What would be the best approach to do that?
Eg;

List<Map> list=new ArrayList<Map>();
List of Mapping objects...
we will add list objects to mainList. It will be like this..
List<List> mainList=new ArrayList<List>();




Thanks in advance!!!
Earlier reply Highly Appreciated...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66143
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That greatly depends on how you want to display it. In general, you use the JSTL <c:forEach> tag to iterate over collections.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!