Re: Iterate through a List of Maps
That was fast! The version is 2.1.8.1. I'm gonna try your suggestion right now, and let you now. Thanks JL 2010/12/13 Steven Yang > yes try adding "#" before "record" -> "#record" > > and since record is a map you can iterate through it directly without > calling entrySet() > > On Tue, Dec 14, 2010 at 10:36 AM, Dave Newton > wrote: > > > What version? Early versions sometimes required a "#" before the > > variable name when referencing vars defined by things like an iterator > > tag. > > > > Dave > > > > On Monday, December 13, 2010, JOSE L MARTINEZ-AVIAL > > wrote: > > > Hello all, I'm trying to iterate through a List of Maps(I have a method > > > "public List getRecords()" in the action) using s:iterator. I can > > > iterate through the List without problems, but I can not get it to > > iterate > > > through the entries of the map. So far I've got this: > > > > > > [..] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > / > > > > > > > > > > > > > > > [..] > > > > > > The tag generates the > > > > > > > > > > > > for each entry, but it is not going through the second iterator, so I > > > suppose I'm doing something wrong with the value attribute. Can you > help > > me > > > with it? > > > > > > Thanks > > > > > > Jose > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >
Re: Iterate through a List of Maps
yes try adding "#" before "record" -> "#record" and since record is a map you can iterate through it directly without calling entrySet() On Tue, Dec 14, 2010 at 10:36 AM, Dave Newton wrote: > What version? Early versions sometimes required a "#" before the > variable name when referencing vars defined by things like an iterator > tag. > > Dave > > On Monday, December 13, 2010, JOSE L MARTINEZ-AVIAL > wrote: > > Hello all, I'm trying to iterate through a List of Maps(I have a method > > "public List getRecords()" in the action) using s:iterator. I can > > iterate through the List without problems, but I can not get it to > iterate > > through the entries of the map. So far I've got this: > > > > [..] > > > > > > > > > > > > > > > > > > > > / > > > > > > > > > > [..] > > > > The tag generates the > > > > > > > > for each entry, but it is not going through the second iterator, so I > > suppose I'm doing something wrong with the value attribute. Can you help > me > > with it? > > > > Thanks > > > > Jose > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Iterate through a List of Maps
What version? Early versions sometimes required a "#" before the variable name when referencing vars defined by things like an iterator tag. Dave On Monday, December 13, 2010, JOSE L MARTINEZ-AVIAL wrote: > Hello all, I'm trying to iterate through a List of Maps(I have a method > "public List getRecords()" in the action) using s:iterator. I can > iterate through the List without problems, but I can not get it to iterate > through the entries of the map. So far I've got this: > > [..] > > > > > > > > > > / > > > > > [..] > > The tag generates the > > > > for each entry, but it is not going through the second iterator, so I > suppose I'm doing something wrong with the value attribute. Can you help me > with it? > > Thanks > > Jose > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org