If getPackages() returns an iterator or iterable collection of Map instances then

    package["someKey"]

is correct, or you can even write

   package.someKey

Please write some details about the problem/error message you get. (+ maybe include the Java sources.)
Br,
Norbi

----- Original Message ----- From: "Darío Vasconcelos" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, June 29, 2005 7:40 AM
Subject: OGNL expression for navigating a HashMap


Hi All,

I'm trying to find an ognl expression that would extract a key's value
from a HashMap. The OGNL site documentation states that
    someMap["size"]
would do the trick, but it doesn't work. I've also tried several other
possibilities but with no luck.

Is there a way to do such a thing, or should I populate a custom POJO?

Regards,

Dario

PS. What I'm trying to do is something like
<tr jwcid="@Foreach" source="ognl:packages" value="ognl:package" element="tr">
<td><span jwcid="package" /></td>
</tr>

and in the .page:

<component id="package" type="Insert">
<binding name="value">
package["someKey"]
</binding>
</component>

maybe the problem is right here?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to