Hey,
I have a question. Suppose you have an unknown java bean given to you. Is there anyway by which you can add all these attributes to a label and without knowing the name of the attributes.
For example,
public class personBean
{
String firstName;
//... Other properties in the person Bean
public void setFirstName(String firstName)
{
this.firstName = firstName;
}
public String getName()
{
return this.firstName;
}
//...............More accessor methods for all other attributes included in personBean
}
Is there any way by which i can make a label containing all attributes/variables of an unknown java bean? Is there a particular method by which i can get a collection of all the methods used in the unknown bean object?
Any help would be greatly appreciated.
Cheers,
Rohith