This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Accessing vector-properties in a bean" Watch "Accessing vector-properties in a bean" New topic

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

Joined: Jan 10, 2002
Posts: 63052


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:
subject: Accessing vector-properties in a bean
It's not a secret anymore!