On my ActionForm, I have a lot of HTML input elements, which come from the domain object (Shipment). To copy them to the ActionForm (in displayPage(), and from the ActionForm (in saveShipment()), I have quite repetitive code such as:
// in displayPage.. form.setName (shipment.getName()); form.setEndDate (shipment.getEndDate()); .. .. // 26 such lines. // in saveShipment.. shipment.setName (form.getName()); shipment.setBeginDate (form.getBeginName()); .. .. // 26 such lines. Since I have seen this problem with multiple domain objects, I was wondering if there is any reflection based utility that can copy all fields with the same name. If there is none, I can write one though, but wanted to check first. best, Amrinder -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>