posted 16 years ago
Ok.
The jsp relevant code
<nested:iterate id="elemento" name="movsAlm">
<table>
<thead><tr><th> <bean:message key="almacen.movimiento.numero"/>
</th>
<th>
<bean:message key="pedido.fecha"/></th><th colspan="2"> <bean:message key="almacen.origen"/></th>
<th colspan="2">
<bean:message key="almacen.destino"/></th>
<th>
<bean:message key="ver.mov.coste"/></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<nested:write name="elemento" property="id"/>
</td>
<td>
<nested:write name="elemento" property="fecha"/>
</td>
<td>
<nested:write name="elemento" property="coste"/>
</td>
</tr>
</tbody>
</table>
<nested:iterate name="elemento" id="elemento2" property="lMov">
<nested:iterate name="elemento2" id="elemento3">
<nested:write name="elemento3" property="id"/>
</nested:iterate>
</nested:iterate>
</nested:iterate>
Mmm, in the action:
ArrayList aMovs = new ArrayList();
for(int i=0;i<idMovsAlm.size();i++){
MovimientoVO mVO = new MovimientoVO();
ArrayList aLnMov = new ArrayList();
for(int l=0;l<hExistMov.size();l++){
LineaMovVO lnMov = new LineaMovVO();
lnMov.setId();
lnMov.setNombre();
lnMov.setUnidades();
lnMov.setValorn();
aLnMov.add(lnMov);
}
mVO.setId();
mVO.setFecha();
mVO.setIdAlmO();
mVO.setNombreAlmO();
mVO.setIdAlmD();
mVO.setNombreAlmD();
mVO.setLMov(aLnMov);
mVO.setCoste(coste);
aMovs.add(mVO);
}
request.setAttribute("movsAlm", aMovs);
Ok, if you have another question, don't worry and asqued me please!
Thanks!!