posted 21 years ago
Sam,
Since all Collection implementors have size() and isEmpty() methods that yield the info you need, you can start there. If you only want to check if the Collection has elements, you can use:
OR
Both of these will use the isEmpty() method on the Collection to determine the logic return.
I typically use a transfer object over the Collection class and add helper methods like getSize(), isPlural(), etc. In that case a simple logic tag can check the size more precisely:
HTH,
--
Josh