--- 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
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
]
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
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
-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
@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
-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
@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
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
]
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
--- 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.
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
12 matches
Mail list logo