I have passed an Object (not a hashmap) to a
jsp page. I want to display the elements of the objects not only the values of the elements. How do I do that?
There are conditions that I want to perform based on the key but since its an object and not a Hashmap of objects I can't loop through the object. At least I don't think so...
For example... If I have a Object called AddressBook and I pass one instance of AddressBook to a jsp page I want to display the labels (Phone, Email, Address, City, State, etc,,,) dynamically.
I can access the information directly like ${addressbook.email} without a loop to display the value but I'd like to display the keys.
Thanks.