?

> -----Original Message-----
> From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 11:17 AM
> To: 'Struts Users Mailing List'
> Subject: RE: nesting c:forEach loops
> 
> 
> You have to use the html-el tag libraries in the contrib. directory.
> 
> Julio
> 
> -----Mensaje original-----
> De: Jarnot Voytek Contr AU/SC [mailto:[EMAIL PROTECTED] 
> Enviado el: Lunes, 29 de Marzo de 2004 02:02 p.m.
> Para: '[EMAIL PROTECTED]'
> Asunto: nesting c:forEach loops
> 
> Is it possible to nest forEach loops and have the html:text 
> input fields
> work correctly?
> 
> My JSP code: 
> <c:forEach items="${applicationForm.schools}" var="school">
>   <tr>
>     <td>
>       <html:text indexed="true" name="school" property="name"/>
>     </td>
>   </tr>
>   <c:forEach items="${school.courses}" var="course">
>     <tr>
>       <td>
>         <html:text indexed="true" name="course" 
> property="courseTitle"/>
>       </td>
>     </tr>
>   </c:forEach>
> </c:forEach>
> 
> Within the second loop, input field names are rendered as
> course[0].courseTitle rather than the required
> school[0].course[0].courseTitle.  Any ideas on nesting these 
> loops?  I'd
> rather stick with JSTL and html-el rather than the nested taglib.
> 
> 
> --
> Voytek Jarnot
> Quantum materiae materietur marmota monax si marmota monax materiam
> possit
> materiari?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to