Woops. In addition to java.util.List it works on java.util.Map and arrays and java.lang.String. But still not on other java.util.Collection types :(
> -----Original Message----- > From: Jerome Jacobsen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 4:21 PM > To: Struts Users Mailing List > Subject: RE: jstl and collection sizes > > > That only works if the Collection is a List. If it isn't a List > you can do > ${myCollection["empty"]}. Not allowing ${empty myCollection} for > non-Lists > is odd, but that's what the spec says. > > There's a thread about this oddity in taglibs-user. > > http://shorl.com/dapofrypragragu > > > > > -----Original Message----- > > From: David Graham [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 26, 2003 4:08 PM > > To: [EMAIL PROTECTED] > > Subject: Re: jstl and collection sizes > > > > > > I've created a simple wrapper to get the exact size but if you > > just want to > > know if the collection has an item in it you can do this: > > > > <c:if test="${empty myCollection}">... > > > > David > > > > > > > > >From: John Thorhauer <[EMAIL PROTECTED]> > > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > >To: Struts Users Mailing List <[EMAIL PROTECTED]> > > >Subject: jstl and collection sizes > > >Date: 26 Feb 2003 15:50:52 -0500 > > > > > >I am trying to figure out how to get the size of a collection using the > > >JSTL Expression Language. Is this possible? I have read the lists and > > >it appears that you can not do it without some kind of collection > > >wrapper. Is this correct. > > > > > >Thanks, > > >John > > >-- > > >******************************** > > >** John Thorhauer > > >** Web Developer > > >** Phoenix Color Corp. > > >** [EMAIL PROTECTED] > > >******************************** > > > > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > _________________________________________________________________ > > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

