aspose file tools
The moose likes JSP and the fly likes how to use hasnest() method inside <c:foreach> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "how to use hasnest() method inside <c:foreach>" Watch "how to use hasnest() method inside <c:foreach>" New topic
Author

how to use hasnest() method inside <c:foreach>

biswajit pan
Greenhorn

Joined: Jul 19, 2008
Posts: 2
hi , please say
how to use hasnest() method inside c:foreach.
my code is
<c:forEach var="img" items="${imgList}" >
<tr>
<td>
<img />

<!--..............here i want to use hasnext() .............-->
</td>
</tr>
</c:forEach>






biswajit
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
hasnest?

Well, you can make use of the 'varStatus' attribute and the JSTL fn:length expression.
But I would think twice about it. Shouldn´t you rather be doing this logic in the bean or servlet class?


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to use hasnest() method inside <c:foreach>
 
Similar Threads
JSTL c:forEach help?
Dynamic population of second list box based on selection of first
newbie question: valid or good jsp code
Passing a list of beans to jsp
how to use hasnext method inside <c:foreach>