You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vinicius Caldeira Carvalho <vi...@squadra.com.br> on 2004/12/27 19:00:36 UTC

nesting a collection inside another collection

How can I nest a collection inside another?

Like I have a collection of products each product has a collection of 
modules, when trying to use
<nested:iterate property="products">
    //iterate through request modules collection containing name and 
idvalue of each module
    <logic:iterate name="modules" id="module">
       <nested:checkbox property="modules.module.id"/><bean:write 
name="module" property="description"/>
    </logic:iterate>
</nested:iterate>

I get the following error:

No getter method for property products[0].modules.module.id of bean ProductsForm

I thought struts could check that modules was a collection of Module beans. and so define an index for it

Any ideas how do I solve this???


Thanx



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