Re: Tag iterator and my object container

2011-05-12 Thread Dave Newton
t; } >> >> @Override >> public SearchResult next() { >> String next = this.iterator().next(); >> return this.get(next); >> } >> } >> >> >> Calls (hasNext() and next()) are done in org.apache.struts2.components. >> IteratorComponent >> &

Re: Tag iterator and my object container

2011-05-12 Thread Chris Pratt
eu MARC > > > -Message d'origine- > De : Steven Yang [mailto:kenshin...@gmail.com] > Envoyé : mardi 10 mai 2011 15:16 > À : Struts Users Mailing List > Objet : Re: Tag iterator and my object container > > you need to implement the Iterator interface > &

RE: Tag iterator and my object container

2011-05-12 Thread Matthieu.Marc
nshin...@gmail.com] Envoyé : mardi 10 mai 2011 15:16 À : Struts Users Mailing List Objet : Re: Tag iterator and my object container you need to implement the Iterator interface On Tue, May 10, 2011 at 4:14 PM, wrote: > Hi everybody, > > I have a container object SearchResults which contain

Re: Tag iterator and my object container

2011-05-10 Thread Dave Newton
Or just access the map and use the Map.Entry object map iterators supply. Dave On May 10, 2011 9:16 AM, "Steven Yang" wrote: > you need to implement the Iterator interface > > On Tue, May 10, 2011 at 4:14 PM, wrote: > >> Hi everybody, >> >> I have a container object SearchResults which contains

Re: Tag iterator and my object container

2011-05-10 Thread Steven Yang
you need to implement the Iterator interface On Tue, May 10, 2011 at 4:14 PM, wrote: > Hi everybody, > > I have a container object SearchResults which contains a treeMap of simple > object SearchResult. > > I want to iterate over SearchResults in order to display properties of all > SearchResult

Tag iterator and my object container

2011-05-10 Thread Matthieu.Marc
Hi everybody, I have a container object SearchResults which contains a treeMap of simple object SearchResult. I want to iterate over SearchResults in order to display properties of all SearchResult object Class SearchResult { //getter and setter getDescr