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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60048
    
  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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Accessing vector-properties in a bean
 
Similar Threads
A question about Request Vs Session
How to iterate vector of vector objects ?
questions of struts
JSF, bean and vector
problem with struts2...