tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Mukkala" <>
Subject c:set Collection size
Date Thu, 05 Sep 2002 14:26:23 GMT
I am trying to get the size of a collection (ArrayList) and
use in  c:set ex:
<c:set var="total" value="${list.size}/>

The error I am getting is:
The "." operator was supplied with an index value of type "java.lang.String" to be applied
to a List or array, but that value cannot be converted to an integer

What is the correct way to get the size value.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message