struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <maurizio.cucchi...@gmail.com>
Subject Re: <s:iterator> get value to specific key
Date Tue, 02 Nov 2010 22:28:33 GMT
You should be able to access on a specific map item through
<s:property value="map.key"/>
or
<s:property value="map['key']"/>

You also should be able to iterate through
<s:iterator value="map">
   <s:property value="key"/>
   <s:property value="value"/>
 </s:iterator>


2010/11/2 Emil Dombagolla <dombagolla@gmail.com>:
> Dear all ,
>
> Please please help me on this,
>
> I have a map with iterator tag, i need to get a value for a specific key,
> can i do this
>
> <s:iterator value="MAP">
>
>    I want to say  <s:property value="MAP['KEY'] "/>   ,  i expect VALUE for
> the relevant key
>
>  </s:iterator>
>
> Thanks Lot.
> emil
>



-- 
Maurizio Cucchiara

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


Mime
View raw message