Unable to get value using key in a map in thymeleaf?

thymeleaf

Solution

Try this

${userFieldValueMap[ __${#strings.replace(field.sectionFieldName,' ','')}__]}"

Problem

I am trying to get value by passing key to a map as shown below: ``` ${userFieldValueMap.get(__${#strings.replace(field.sectionFieldName, ' ', '')}__)}" ```

Original source