• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how can i iterate arrayList in jsp

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how can i iterate arraylist in jsp

<c:forEach var="lists" items="${list}">
<tr>

but i dont want to write this hard code

<td><c:out value="${lists.get(0)}" /><td>
<td><c:out value="${lists.(1)}" /><td>

because i have more elements ...actually i want to use some checks when it will be iterate.
</tr>
</c:forEach>
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

mk yadav wrote:
actually i want to use some checks when it will be iterate.


all this check, business validation should be done before jsp i.e, in servlet for instance.

by the way: to do some check , you want to access element by index, I wonder how it will help you?
reply
    Bookmark Topic Watch Topic
  • New Topic