You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/06/18 21:37:23 UTC

DO NOT REPLY [Bug 20888] New: - Problem while setting values in a list of objects in an ActionForm

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20888

Problem while setting values in a list of objects in an ActionForm

           Summary: Problem while setting values in a list of objects in an
                    ActionForm
           Product: Struts
           Version: 1.1 RC1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: xlf14@hotmail.com


I have a form object with a member variable for an ArrayList of Beans. I'm 
trying to set properties for the bean using code such as 

<html:form method="get" action="/myform/save">
<logic:iterate id="mybean" name="MyForm" property="myList" type="MyTestBean">
<html:text name="mybean" property="name"/>
<html:text name="mybean" property="value"/>
</logic:iterate>
</html:form>
It can get the values corretly but it doesnt set the values on it.

However if I code it as follows, it works...
<html:text name="MyForm" property="myList[1].name"/>

Please help !!!

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org