thymeleaf setting variables code example
Example: how to create a variable in thymeleaf
You can use local variables. Declare an HTML element with a th:with attribute. For example <div th:with="someVariable=${someValue}"
You can use local variables. Declare an HTML element with a th:with attribute. For example <div th:with="someVariable=${someValue}"