You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andreas Langmann <an...@isb-ag.de> on 2002/11/29 16:11:00 UTC
a little riddle...
Hi,
i have the following code:
<c:forEach var="fach" items="${f_myformbean.fachListe}">
<html:select property="fachListe[0].ufId" styleClass="CB_Edit" >
<html:option value="">option one</html:option>
</html:select>
</c:forEach>
This works, but access for each object in fachListe the object with id "0".
if i do the following inside the loop:
<% counter++; %>
<html:select property="fachListe[<%= counter %>].ufId" styleClass="CB_Edit"
>
<html:option value="">option one</html:option>
</html:select>
i got "fachListe[].ufId" and an error
any ideas? Must i do this without jstl ?
I want struts to fill my formBean with the entered data....
thanks,
Andreas
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: a little riddle...
Posted by Andreas Langmann <an...@isb-ag.de>.
forget it... it's so easy, if you know how....
-----Ursprüngliche Nachricht-----
Von: Andreas Langmann [mailto:andreas.langmann@isb-ag.de]
Gesendet: 29.11.2002 16:11
An: Struts User Mailingliste
Betreff: a little riddle...
Hi,
i have the following code:
<c:forEach var="fach" items="${f_myformbean.fachListe}">
<html:select property="fachListe[0].ufId" styleClass="CB_Edit" >
<html:option value="">option one</html:option>
</html:select>
</c:forEach>
This works, but access for each object in fachListe the object with id "0".
if i do the following inside the loop:
<% counter++; %>
<html:select property="fachListe[<%= counter %>].ufId" styleClass="CB_Edit"
>
<html:option value="">option one</html:option>
</html:select>
i got "fachListe[].ufId" and an error
any ideas? Must i do this without jstl ?
I want struts to fill my formBean with the entered data....
thanks,
Andreas
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>