This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!