• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

getting List from Wired bean  RSS feed

 
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is a part of my xml file


this my piano class


this is my saxphone class


this is my main class

how can i get the piano or saxophone bean from c variable.is this way correct or not.
I need to check how the list is working on spring?
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should work. What is the problem?
 
sam liya
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to get Piano or Saxophone object.But ican't get t using this code?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still not sure what the problem is--are you saying you're not getting the collection?
 
sam liya
Ranch Hand
Posts: 1292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting the collection.But i can't get the piano object from it?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean the collection is empty or you don't know how to get each item from the collection?
If you want to get each item from the collection, you can use collection.iterator(), and Iterator#hasNext, Iterator#next methods. You can read JavaDoc for more info.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!