> -----Original Message----- > From: David Graham [mailto:dgraham1980@;hotmail.com] > Sent: Wednesday, October 30, 2002 8:14 AM > > Sorry for the OT post but the java forum was unresponsive. > How do you get > the size of a collection class in the JSTL EL? > > You can do it with jsp expressions like: > <%= collection.size() %> > > but I want to do something like > > <c:if test="${collection.size > 0}"> > > I've tried every variation on that syntax that I could think of.
That's because you can't do it. I know, I went through the exact same discovery process. If you're using Struts, you can just use "bean:size". -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>