There is not a way to do it with JSTL 1.0 -- there is a way using the function tag lib in JSTL 1.1. If you are using Struts ;) use the <bean:size> tag to create a page-scoped variable which can then use.

Linus Nikander wrote:
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]



Reply via email to