Hi,
You do need a getter for list. I don't think you need a setter, though.
Your textfields should have a value attribute in addition to name, to access
the getters, which I suppose you have even if you don't show them, since it
displays your arraylist correctly.  Is using #stat.index enough without
using ognl? Look at your page source. If the #stat.indexes are not replaced
by numbers, use this: %{#stat.index}.

Jukka


On Mon, Apr 14, 2008 at 9:54 PM, <[EMAIL PROTECTED]> wrote:

> I am having a similar problem to Ancat:
>
> I have an arrayList named 'students' in an action. I use this action to
> load values for a .jsp which contains the following code:
>
> <s:form action="Instructor/Home!saveChanges">
>
> <s:iterator status="stat" value="students">
>   <s:textfield name="students[#stat.index].lastName" /></td>
>   <s:textfield name="students[#stat.index].firstName" /></td>
>   <s:textfield name="students[#stat.index].userName" /></td>
>   <s:textfield name="students[#stat.index].userPassword" /></td>
>   </s:iterator>
>
> </s:form>
>
> This displays my arrayList correctly, but when I submit to my action, I
> cannot retrieve the modified arrayList.
>
> Am I mistaken in thinking I simply need a getter/setter for an arrayList
> named "students" in my receiving action?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to