File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how can i iterate arrayList in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how can i iterate arrayList in jsp" Watch "how can i iterate arrayList in jsp" New topic
Author

how can i iterate arrayList in jsp

mk yadav
Greenhorn

Joined: Dec 04, 2012
Posts: 5
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>
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i iterate arrayList in jsp