aspose file tools
The moose likes Beginning Java and the fly likes utility to convert a HashMap to a Javabean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

utility to convert a HashMap to a Javabean

achsu subra
Greenhorn

Joined: Feb 01, 2011
Posts: 11
Hi All,

I am searching how to convert a HashMap to a Javabean. Looking how to create a bean (whose String attributes match with HashMap keys ) given bean class as input along with hashmap.
I read that we can use Dozer or org.apache.commons.beanutils.BeanMap. Can any one please provide the best way to do this with a small example code?

I am stuck up on this , please assist ASAP. Thanks a lot in advance.

regards,
achsu
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

Don' t duplicate threads. Continue there.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: utility to convert a HashMap to a Javabean
 
Similar Threads
How to convert HashMap to JavaBean
Is there any way to convert a shadow fact back to a javabean
How to get Hashmap's value in jsp?
convert class java to javabean
Can we convert a Servlet into a Bean