0

Is there any way to put ${} in ${}?

I want to put ${} as a key value in HashMap.

I tried

<td th:text="${nickNames[${reviewId}]}">

  • You cannot nest expressions like that. But you don't need to. Have you researched [similar questions and their answers](https://www.google.com/search?q=thymeleaf+hashmap+site%253Astackoverflow.com)? – andrewJames Apr 23 '22 at 13:38
  • Does this answer your question? [How to use "map.get(key)" in Thymeleaf](https://stackoverflow.com/questions/28621301/how-to-use-map-getkey-in-thymeleaf-broadleaf-ecom) – andrewJames Apr 23 '22 at 13:38

0 Answers0