You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leonardo Maciel <LM...@Scient.com> on 2002/06/13 23:56:27 UTC
html:checkbox inside html:iterate on struts 1.0.2
Three quick questions on struts 1.0.2
1. can I use html:checkbox inside a html:iterate ? Yes (two to go)
2. what should be on the form? String[] checked or Boolean[] checked or ...?
<!-- something like this -->
check the options you want
<html:form action="/action.do">
<logic:iterate id="result" indexId="inx" name="resultArray">
<html:checkbox property="checked" />
<bean:write name="result" property="description" />
</logic:iterate>
</html:form>
3. do I have to index the checkbox property ?
<html:checkbox property="checked[<%=request.getAttribute('inx')%>]" />
Thank you,
Leo
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>