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!

How can I evaluate if a collection is empty or not with struts logic tag?

843838Oct 31 2005 — edited Nov 7 2005
How can I evaluate if a collection is empty or not with struts logic tag?

I tried with logic empty tag. but the tag evaluated if a collection is null or not.

I would like to do like this below.
List list = new ArrayList();
set(list);
<logic:XXXX name="someForm" property="list">
The list size is 0.
</logic>
thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2005
Added on Oct 31 2005
3 comments
505 views