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

704 views Asked by At

I have a requirement of displaying data from List> 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...

1

There are 1 answers

4
Jigar Joshi On

Use <c:forEach>

for List<List> list

<c:forEach items="list" var="listOuter">

  <c:forEach items="listOuter" var="listInner">

  </c:forEach>

</c:forEach>

Also See