aspose file tools*
The moose likes JSP and the fly likes Accessing vector-properties in a bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Accessing vector-properties in a bean" Watch "Accessing vector-properties in a bean" New topic
Author

Accessing vector-properties in a bean

Daniel Zuckermann
Ranch Hand

Joined: May 14, 2012
Posts: 50
I have a bean that contains a Vector that is filled with some other objects. How can I access the properties of those other objects?

I can access a Vector item that way but I don't know how to access the object properties in the vector. I thought could work, but it doesn't.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60999
    
  65

ItDoesntWorkIsUseless

Vector? Use a List.

Then if things are as you describe, it should.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing vector-properties in a bean