I don't think there is a way to get the size of a Collection as u said
But in your Action Class you can have a method Which returns the Collection Size.


For Example

public int getSize(){
   return collectionName.size();
}

with regards
Hariharan.P
Dieter Van Baarle wrote:

I'm trying to retrieve the size of a Collection (ArrayList in my case)
in my JSP View.

I'm having trouble with it, since the method to retrieve the size of a Collection is "size()" and not "getSize()"

Is there any way to call a method that does not start with "get" or
"is"?

Thanks,

Dieter van Baarle
[ Java Product Specialist ]
N.V. Ferranti Computer Systems S.A.



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





-- P.Hariharan Sip Technologies & Exports Ltd., G4 Elnet Software City, Taramani Chennai -113 e-mail [EMAIL PROTECTED] Phone 22541473/74 Ext 314





-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to