You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by raghu_c <ra...@infosys.com> on 2003/06/16 17:27:36 UTC

ArrayLists inside logic:iterate

Hi all,

I am unable to use arraylists , their indexed props inside logic:iterate tags
either I can have the iteration or i can have the data displayed it seems :D


The problem is 

<nested:iterate id="MINESNQueryForm" name="MINESNQueryForm" property="arrlstMINESNIS41Records" length="15">
<tr>
	<logic:notEmpty name="MINESNQueryForm" property='<%="arrIS41Date["+iCounter+"]"%>'>
		<td align = "center">
		<font color=<%=(String)arrIS41ColorCode.get(iCounter)%>>
			<bean:write name="MINESNQueryForm" property='<%="arrIS41Date["+iCounter+"]"%>' />
		</font>
		</td>
	</logic:notEmpty>
</tr>
</nested:iterate>

The arrIS41Date has got nothing to do with the Collection given in the iterator
 (arrlstMINESNIS41Records)which is type ArrayList

The indexed property is not accessible by its getter - The error says 
"HTTP ERROR: 500 No getter method for property arrIS41Date[0] of bean MINESNQueryForm"
whereas there exists this method
<code>

/**
 * @return
 */
public String getArrIS41Date(int idx) {
	return (String)arrIS41Date.get(idx);
}

</code>
----------------------------------------

Any pointers, just about any will be welcome

Thanx in Advance,
Raghu

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org