Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Cory D. Wiles
Example code: On 9/21/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- j alex <[EMAIL PROTECTE

Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Dave Newton
--- j alex <[EMAIL PROTECTED]> wrote: > The entire expresion is OGNL, not just the "key" value from the stack. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Iterate Hashmap with s:iterate

2007-09-20 Thread j alex
> > > > > > wrote: > > > > > > > > > > > > > If I remember correctly, to use the s:iterator > > > > > tag, > > > > > > > you have to use an > > > > > > > object that has an 'iterator

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
t; > you have to use an > > > > > > object that has an 'iterator()' method. HashMap > > > > does > > > > > > not implement > > > > > > java.util.List... > > > > > > > > > > > > To iterate over

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
--- Josh Vickery <[EMAIL PROTECTED]> wrote: > I'm a little curious about the inclusion of the > double parentheses at the end of "entrySet" -- OGNL, > as far as I am concerned, is a bit of strange beast. It's a method call -- not property access. d.

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Josh Vickery
that has an 'iterator()' method. HashMap > > > does > > > > > not implement > > > > > java.util.List... > > > > > > > > > > To iterate over a Hashmap, get the keyset > > > > > [tempMap.ketSet()]

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
erate over a Hashmap, get the keyset > > > > [tempMap.ketSet()] from it. > > > > The keyset is a List and you can get an iterator > > > > from there. > > > > > > > > -Wes > > > > > > > > -Original Message- >

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
; [tempMap.ketSet()] from it. > > > The keyset is a List and you can get an iterator > > > from there. > > > > > > -Wes > > > > > > -Original Message- > > > From: Cory D. Wiles [mailto:[EMAIL PROTECTED] > > > Sent: Wednesda

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
hmap, get the keyset > > [tempMap.ketSet()] from it. > > The keyset is a List and you can get an iterator > > from there. > > > > -Wes > > > > -Original Message- > > From: Cory D. Wiles [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September

RE: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 12, 2007 2:28 PM > To: user@struts.apache.org > Subject: Iterate Hashmap with s:iterate > > I have an action that returns a hash map that I need > to output both the > key and value, but I can't figure out how to access &

RE: Iterate Hashmap with s:iterate

2007-09-12 Thread Wesley Wannemacher
re. -Wes -Original Message- From: Cory D. Wiles [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 12, 2007 2:28 PM To: user@struts.apache.org Subject: Iterate Hashmap with s:iterate I have an action that returns a hash map that I need to output both the key and value, but I can't

Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
I have an action that returns a hash map that I need to output both the key and value, but I can't figure out how to access each property with s:iterate. Any suggestions would help. The HashMap is being set in my action and returned populated (verified with ). // Action snippet Iterator category