struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: <s:iterator> get value to specific key
Date Wed, 03 Nov 2010 04:00:25 GMT
in Java you have two tools to get what you're asking for:

Map has an entrySet() method returns a Set<Map.Entry>, each one of which 
has a getKey() and a getValue() method.
The original map also has a get() method.

So translating to ognl, you can iterate over map.entrySet(), and use 
top.key, top.value (or just key, value)...or wherever you have a key, 
you can always say map.get(key).

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message