Click to See Complete Forum and Search --> : How to iterate through a list which consists of a sublist


Sreem
12-20-2007, 04:04 AM
Hi All,

I'm facing a probelm.....

I have a list which i turn consists of another list.

now i need to populate the sublist in a combobox....

i'm using struts...please help..

<logic:iterate name="kpis" id="kpi">
<TR>
<TD class="td"><input type="checkbox" name="ruleId" value="<bean:write name="kpi" property="id"/>" /></TD>
<TD class="td"><bean:write name="kpi" property="systemId"/></TD>
<TD class="td"><bean:write name="kpi" property="region"/></TD>
<TD class="td"><bean:write name="kpi" property="param"/></TD>
<TD class="td"><bean:write name="kpi" property="description"/></TD>
<TD class="td"><bean:write name="kpi" property="criticalDisplay"/></TD>
<TD class="td"><html:select property="linkCategory">
<html:options collection="<bean:write name="kpi" property="linkedCategories"/>" />
</html:select> </TD>
</TR>
</logic:iterate>

Please find the sublist part i highlighted ....

i'm getting a error like..

org.apache.jasper.JasperException: /tiles/ListBody.jsp(42,49) equal symbol expected


please help.....

chazzy
12-20-2007, 07:22 AM
Is kpi some kind of custom object with a method getLinkedCategories() ?