Loading sub-menu...

How to render the keys and values from a Map in Freemarker

Render the values of a Map

The following code snippet shows how to get the values of a Map (e.g. HashMap) from within a Freemarker template.

Render the keys of a Map

You can do a similar thing with the keys of a map as shown below.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.