Don’t know is it possible to copy elements from one map to another map in velocity?This copies only last element
#foreach($key in $departamentsMap.keySet())
$key - $departamentsMap.get($key)
#set($maap={$key:$departamentsMap.get($key)} )
#end
That’s because you’re creating a new $maap every time. Just do:
It’s just a HashMap underneath. Not complicated. 🙂