Hi Ding!
You can try this:
<bean:size id="collectionLength" name="dsmccList" />
You may look into struts-bean API documentation to understand how this tag works.
[]�s
Henrique Andrade Viecili
----- Original Message -----
From: Ding Lei
To: [EMAIL PROTECTED]
Sent: Saturday, May 22, 2004 2:44 AM
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]