Hi, When we are trying to do this(<@s.textfield name="poll.pollOptions[#{rowIndex}].option" />) are assign a new name to every textbox.So why will the array return.It return them as different params and tries to autowire.So Use a ommon name for them and see what happens when you submit the form.It should return an array.
----- Original Message ---- From: Luciano Costa <[EMAIL PROTECTED]> To: Struts Users Mailing List <user@struts.apache.org> Sent: Tuesday, 3 July, 2007 12:23:30 AM Subject: [S2] Why is it so difficult ? Hi all, I'm still trying to get binded these "poll.pollOptions[]" in my Action: I think this should be easy.. but I'm suffering to get this working.. <@s.textfield name="poll.name" id="poll.name" /> <#assign rowIndex = 0> <@s.iterator value="poll.pollOptions" > <@s.textfield name="poll.pollOptions[#{rowIndex}].option" /> <#assign rowIndex = rowIndex + 1> </@s.iterator> The form is loaded correctly, but I can't get array data on pollOptions after form submission. Please help! Thanks, Luciano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php