From: "Brent Vaughn" <[EMAIL PROTECTED]>
> I am trying to print out the size of an ArrayList.
>
> Here is the code I am using.  BC is a bean container.  infusion is a bean.
> The variable prepopUserList is an ArrayList.
>
> <c:out value="${BC.infusion.prepopUserList.size}"/>
>

There is no 'getSize' method on ArrayList, I don't see how this could work.
(ArrayList isn't a JavaBean, its methods don't conform to the naming
conventions for get/set methods for its properties.)

A quick Google search http://www.google.com/search?q=JSTL+List+size turns up
an article that deals with this issue:
http://www.phptr.com/articles/article.asp?p=30946&seqNum=8&rl=1

And another link pointed me towards
http://struts.apache.org/userGuide/struts-bean.html#size

I've never used it, but apparently  <bean:size> will put the size of  a
Collection into page scope for you.
Perhaps...
     <bean-el:size id="listSize" name="${BC.infusion.prepopUserList}" /> ??
     <c:out value="${listSize}"/>

HTH,
-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to