Eternal_Student
asked on
JSTL limit forEach
If im doing c:forEach and outputting the results is there a way to limit the number of results you can display ?
many thanks.
many thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<c:if test="${status.count <= 3 }">
I got it ^. Thanks for the link fargo.
I got it ^. Thanks for the link fargo.
good that it works. But why grade B?
ASKER
<gc:moviesList var="movies" />
<c:forEach var="movie" items="${movies}" varStatus="status">
<c:if test="${status.count = }">
<a href="/sctv/movie.jsp?movi
</c:if>
</c:forEach>
But im not sure how would set the status.count to equal 3. So it ONLY pulls out three results ?