romach
4/22/2017 - 2:25 PM

Concatenate strings in Thymeleaf

Concatenate strings in Thymeleaf

<p th:text="${bean.field + '!' + bean.field}">Static content</p>

th:text="'static part' + ${bean.field}"

th:text="${'static part' + bean.field}"