File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Listing an Objects elements. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Listing an Objects elements.

laura mccord
Ranch Hand

Joined: Feb 10, 2009
Posts: 108
Is there a way to list an object's elements (or keys) in jsp? The object is not a hashmap but just a pojo. I wanted to display the objects elements(variable names) dynamically along with the values stored for those elements.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Hey there... it's a tad unfriendly to post same question in multiple forums or more than once. It can waste the time of the people who are trying to help you when multiple redundant conversations take place. You can read more about this at this link ⇒ CarefullyChooseOneForum ⇐. Please help us keep the Ranch a friendly place by not posting multiple times. Thanks!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Listing an Objects elements.
 
Similar Threads
Array can hold...
Are arrays objects in Java?
how to sort out elements in vector objects
How many objects?
Question no :15, on generics fromk K&b