struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: [OT] Getting a Collection's size in JSTL
Date Wed, 30 Oct 2002 16:28:13 GMT
Well, for a second I thought maybe you were possessed or something :) .

> -----Original Message-----
> From: David Graham [mailto:dgraham1980@hotmail.com]
> Sent: Wednesday, October 30, 2002 8:24 AM
> To: struts-user@jakarta.apache.org
> Subject: RE: [OT] Getting a Collection's size in JSTL
> 
> 
> Thanks David.  Do you really think I'm not using struts :-) ?
> 
> Dave
> 
> >From: "Karr, David" <david.karr@attws.com>
> >Reply-To: "Struts Users Mailing List" 
> <struts-user@jakarta.apache.org>
> >To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> >Subject: RE: [OT] Getting a Collection's size in JSTL
> >Date: Wed, 30 Oct 2002 11:18:48 -0500
> >
> > > -----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>
> 
> 
> _________________________________________________________________
> Surf the Web without missing calls! Get MSN Broadband.  
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message