Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

thymeleaf

I am trying to get value by passing key to a map as shown below:

${userFieldValueMap.get(__${#strings.replace(field.sectionFieldName, ' ', '')}__)}" 
like image 428
Harpreet Singh Avatar asked Aug 12 '13 11:08

Harpreet Singh


1 Answers

Try this

${userFieldValueMap[ __${#strings.replace(field.sectionFieldName,' ','')}__]}"
like image 128
Nikhil Mahajan Avatar answered Oct 14 '22 04:10

Nikhil Mahajan