Mapping two beans in a single web form?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, April 17, 2006 08:15 PM

I have a web form say it has 30 input type elments, which belong to two different bean types, again, say student info bean and course info bean. How can I map these 30 input type elements to respective bean without manual mapping?

Re: Mapping two beans in a single web form?

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, April 29, 2006 04:03 PM

There's a method, I think it's called "mapProperties", something like that? and you give it the source and destination bean objects? in the Jakarta Commons BeanUtils? (that is, assuming the 15 properties have matching getter names between your web form and your student info bean, and the other 15 also have matching getter names between your web form and your course info bean).
About | Sitemap | Contact