Rick sent the example code below to an user earlier and I was just wondering. Would it be acceptable to generate the EmployeeVO using a constructor like:
EmployeeVO emp = new EmployeeVO( eForm ); Would that be considered tying the view to the business layer? It seems like it would work nicely especially since you could use polymorphism if you needed to generate VOs from other Forms (ie AnotherEmployeeActionForm). Thanks, Brady > //In Action method: > execute(...) //or dispatchMethod update(..) { > //cast to your ActionForm of String properties > EmployeeActionForm eForm = (EmployeeActionForm)form; > > //business POJO with correct Data types > EmployeeVO emp = new EmployeeVO(); > > //easy to take the stuff from ActionForm to VO > BeanUtils.copyProperties( emp, eForm ); > > //Do the update > yourEmployeeDAO.updateEmployee( emp ); > } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]