Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
biswajit pan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!