As I asked I am problem with using DTO,I want to extract data from FormBean and put it into DTO and vice versa,but I don't know the correct way to do it.
please help me related to this issue.
As I asked I am problem with using DTO,I want to extract data from FormBean and put it into DTO and vice versa,but I don't know the correct way to do it.
please help me related to this issue.
If the properties of your form and your DTO have matching names then you will find this very useful in you actions, works also for map backed forms:
org.apache.commons.beanutils.BeanUtil.copyProperties(Object dest,Object orig)