Image

Imagesongwind wrote in Imagejava_dev 😡frustrated

Another struts question

This one is really frustrating me.

okay, let's say I have an ActionForm, MyForm, instantiated in the request scope as myForm.

MyForm has an ArrayList field, myList, with proper getters and setters.

myList is intended to be full of items of type ListObject, which have three properties (prop1 thru prop3).

In my View component (a JSP) I have succeeded in displaying the data for editing like such:


<logic:iterate id="currentListObject" name="myForm" property="myList">
<html:text name="currentListObject" property="prop1" /><BR/>
<html:text name="currentListObject" property="prop2" /><BR/>
<html:text name="currentListObject" property="prop3" /><BR/>
</logic:iterate>


However, when I press "Submit" on this form, the myForm bean in question never has anything in the myList field, it's always null.

Can anyone tell me what I'm doing wrong, or missing?

Thanks.