Two options Using your scriptlet example
<%= ActivityForm.getBusinessCollection().size() %> Or there is a struts tag to retrieve size <bean:size id="size" name="ActivityForm" property="businessCollection"/> On 3/9/06, Caroline Jen <[EMAIL PROTECTED]> wrote: > > I am trying to display 'counts' in a Collection. And > I use JSP scriptlet to do it: > > <%=businessCollection.size()%> > > The compiler cannot recognize the Collection > 'businessCollection'. It is because > businessCollection is defined in the > ActivityForm.java. > > When I tested whether businessCollection is empty or > not, I used: > > <logic:notEmpty name="ActivityForm" > property="businessCollection"> > blah, blah > </logic:notEmpty> > > And it was successful. > > Then, how do I display the counts of the Collection in > this situation? > > Thanks in advance. > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >