0

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...

jmj
  • 237,923
  • 42
  • 401
  • 438
Mr.Chowdary
  • 517
  • 1
  • 6
  • 18

1 Answers1

1

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

Community
  • 1
  • 1
jmj
  • 237,923
  • 42
  • 401
  • 438