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!

check for null and empty - Arraylist

843838Mar 30 2007
Hello all,

Can anyone tell me the best procedure to check for null and empty for an arraylist in a jsp using JSTL. I'm trying something like this;

<c:if test="${!empty sampleList}">
---
</c:if>

Help is greatly appreciated.

Thanks,
Greeshma...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2007
Added on Mar 30 2007
0 comments
223 views