Theres also a <bean:size> in Struts http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-bean.html#size
Niall ----- Original Message ----- From: "Ed Griebel" <[EMAIL PROTECTED]> Sent: Tuesday, March 07, 2006 2:48 PM If you're using a JSP 2.0 container you can use fn:length(<expr>), see http://www.onjava.com/pub/a/onjava/2003/11/05/jsp.html?page=last and http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/length.fn.html If you're not using a JSP 2.0 container, you can use a taglib in the Jakarta Taglibs sandbox, there's a size tag in the "unstandard" taglib: http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html. I don't know how well supported the unstandard taglib is, but from what I've found when looking at the source code for Unstandard is that the methods are pretty basic and what I would write, so it saves me writing my own tags. -ed On 3/6/06, Caroline Jen <[EMAIL PROTECTED]> wrote: > I have a Collection called 'remarks'. I can use the > <logic:notEmpty> or <logic:empty> tags to test out if > the Collection has some elements in it or not. > > 1. Is there any tag I can use to test the size value > of that Collection to be zero or greater than zero? > Or I have to use the Java code in my JSP page? > > 2. Is there any tag I can use to output the > > remarks.size(); > > to the browser? > > I simply think that it should not be too much Java > code in a JSP page. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]