Hi,

For e.g, I've this iteration in my jsp page

<s:iterator  value="users">
<s:checkbox name="userId" value="%{selectedUserId}" fieldValue="%{userId}"/>
<s:textfield label="First Name" name="firstName" />
    <s:textfield label="Last name" name="lastName" />
</s:iterator > 

and this in action

public User[] getUsers(){
return this.users;
}

public User[] setUsers(){
return this.users;
}


When the user submit the form, I want struts set the firstName & lastName back 
to users array, how to achieve this?


Regards
Louis

Reply via email to