Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Dave Newton
--- j alex [EMAIL PROTECTED] wrote: s:if test='%{key} == card' 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

Re: Iterate Hashmap with s:iterate

2007-09-21 Thread Cory D. Wiles
Example code: s:iterator value=%{drugClassPropsSrvc} id=prop tr th scope=rows:property value=#prop.key//th s:if test=#prop.value eq 'Yes' th scope=rows:property value=#prop.value//th /s:if

Re: Iterate Hashmap with s:iterate

2007-09-20 Thread j alex
] 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

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 s:debug/). // Action snippet Iterator

RE: Iterate Hashmap with s:iterate

2007-09-12 Thread Wesley Wannemacher
-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 figure out how

RE: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
@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 each property with s:iterate. Any suggestions would help. The HashMap is being set in my action and returned

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
-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 figure out

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Dave Newton
@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 each property with s:iterate. Any suggestions would help. The HashMap is being set in my action

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Cory D. Wiles
is a List and you can get an iterator from there. -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

Re: Iterate Hashmap with s:iterate

2007-09-12 Thread Josh Vickery
] 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 each property

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 Cory D. Wiles
is a List and you can get an iterator from there. -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