Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL <c:forEach> Iterator -- Getting the Size

843835Jul 8 2002 — edited Jul 11 2002
I'm using the <c:forEach> tag to loop through a Vector in a JSP. Prior to looping through the Vector I can test whether or not the Vector is null using:

<c:when test="${myVector == null}">
...do something else
</c:when>

What I really want to do is find out if the Vector has anything in it (eg -- it's size is GT 0).

Thanks...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2002
Added on Jul 8 2002
1 comment
286 views