This content has been marked as final. Show 2 replies
i want to retrive the map value. what droplet used for this?you can you ForEach droplet.
For more information you can go through:
<dsp:droplet name="ForEach"> <dsp:param name="array" bean="/a/b/Student.myMap"/> <dsp:oparam name="output"> Key is <dsp:valueof param ="key"/> value is <dsp:valueof param ="element"/> </dsp:oparam> </dsp:droplet>
Edited by: RMishra on Feb 12, 2013 6:37 PM
If you already know the key that you want to retrieve, you can just use it plainly. So assuming your map is in a parameter named 'map', and your key is 'city', you could use:
<dsp:valueof param="map.city" />