Linus, this question belongs on the JSTL mailing list. The answer can also be found in the JSLT 1.1 (mr) specification section 15.8.
<c:out value="${fn:length(collectionName)}"/> robert > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Linus Nikander > Sent: Saturday, July 31, 2004 8:39 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: Display collection size with jstl > > > How do I output the size of a collection whilst NOT in a loop ? > > I've tried all the > > <c:out value="collectionName.size" /> > <c:out value="collectionName.length" /> > > variations I can think of but it doesn't seem to work. > > Do I have to use a loop-structure to get at the size ? or do I have to bind > the collection to a page-variable before I can get the size ? Or is there a > syntax for getting it directly ? > > The variable I'm trying to access is in session-scope > > /Linus Nikander > > > > > --------------------------------------------------------------------- > 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]