I guess maybe my original post was too long-winded to read because I got no replies...
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg57926.html

but can somebody at least tell me if I'm way out to lunch here:

1. PropertyUtils.copyProperties() only performs a shallow copy, according to it's JavaDoc description. So I think this means that the form properties with nested objects could be referring to the same object instance that is actually one of the properties of a business object. Now, doesn't that mean that business objects are being modified without being mediated by the Action object? In other words, you don't get the chance to look at the input data and decide whether or not to reject it or use only some of it to change the state of the model.
what I mean by this is you have a business object bizObj, which has nested javabean properties like: bizObj.property1.nestedproperty1
if you do PropertyUtils.copyProperties(myForm, bizObj), then your form property myForm.property1.nestedproperty1 is actually the same instance of the object nestedproperty1 that is being used by the business object. is that correct?

thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to