<c:set var="dataCount" value="${fn:length(dsmccList)}"/>

robert

> -----Original Message-----
> From: Ding Lei [mailto:[EMAIL PROTECTED]
> Sent: Saturday, May 22, 2004 1:45 AM
> To: [EMAIL PROTECTED]
> Subject: How to get length of an array(collection)
> 
> 
> Hello all,
>       There is an array(dsmccList) obtained by a self-defined tag, and I wanna to 
> send the length of the array
>       as an hidden property, as following:
>       <iPanel:appListData id='dsmccList'/>
>       <c:set var="dataCount" value="${dsmccList.length}"/>
> 
>       But this causes exception:
> javax.servlet.jsp.el.ELException: 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.
> 
>       Any ideas? Thanks!
> 
> 
> -- 
> Yours,
> 
>    <<<:::::   D i n g    L e i   ::::::>>
>  ||                                      ||
>  || Ext: 8106                            ||
>  || Email: <dinglei [A] ipanel [O] cn>   ||
>  || Dept. Of Technology/Engineering      ||
>  || Embedded Information Services Inc.   ||
>  ||                                      ||
> <((((((    =====================     )))))>>>
>       
> "Good-bye.  I am leaving because I am bored."
>               -- George Saunders' dying words
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to