Dynamic JavaBean?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, February 10, 2004 03:44 PM

How do i create a "generic" javabeans so that setters and getters can be constructed on the fly as the request parameters come through? is this even possible with introspection?



basically, each time i create a new form, i don't want to have to create a whole new javabean just for that form.

Re: Dynamic JavaBean?

Posted By:   Bhagyashree_Jayaram  
Posted On:   Friday, February 13, 2004 02:04 AM

Hi,


For each request you can create the a map containing the attribute name and type(like "String","int" etc).One more map containing the attribute name and value.Using these two you can create a dynamic bean.


Hopw this helps....
Bhagya
About | Sitemap | Contact