Hi all!
Been working with struts and value-objects, and I am beginning to understand the power 
of these two in combination. I did however run into a snag that may be either on 
purpose or just ignorance on my part.

If I pass a 20-field value-object to an ActionForm (let's say an EmployeeVO), and I 
only show the employee's name and address for editing (only 5 or so fields).  They 
make the necessary changes and submit the form.  What I understand is the form will 
populate a NEW EmployeeVO and not make the changes to the original EmployeeVO, thereby 
creating an EmployeeVO populated only from the 5 fields on the form and nulling the 
other 15 fields.

I was hoping to take an existing Value-Object, only make necessary changes from the 
submitted form (i.e. 0-5 changed fields and the other 15 stay the way they are), and 
then re-submit the Value-Object for updating the DB, but that does not seem possible.  
Am I doing something wrong and/or mis-understanding the best utilization of 
Value-Objects with Struts?  Again, I'm a newbie so any pointers, help, or examples 
would be great!

thanky in advance!
-D

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

Reply via email to