Struts does this by default, name="person" property="firstName" name="person" property="lastName" name="person" property="company.name" name="person" property="company.addresss.line1" name="person" property="company.addresss.line2" name="person" property="company.addresss.line3"
-AP_ http://www.alexparansky.com Java/J2EE Architect/Consultant http://www.myprofiles.com/member/profile/apara_personal -----Original Message----- From: Mike Hogan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 6:14 PM To: [EMAIL PROTECTED] Subject: How to map form data to a HIERARCHY of domain objects Hi, I want to map data posted from a form to a hierarchy of domain objects. For exampe, my form includes the following information: Person first name Person last name Company name Company address I would like a javabean hierarchy, whose root is an object of type Person, and which allows me do the following: person.getFirstname(); person.getLastname(); person.getCompany(); person.getCompany().getAddress() The last line is the crucial bit. It indicates that I require mapping of the form data to a nested object model. Is there a component in Struts to do this? I expect there is, but have so far been unable to find it. Thanks for your help, Mike -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>