I'm new to Thymeleaf (and webdev), and I'm trying to combine the iteration of Thymeleaf (th: each) with re-writing the URL (th: href).
<a th:each="lid : ${lists}" th:text="${lid}" th:href="@{/list?l=${lid}}">
hello
</a>
The result is the following (where lid = 45):
<a href="/list?l=${lid}">45</a>
So, he replaced the text th: text, but not with th: href.
I am not trying to rewrite the URLs, I just use the “@” syntax because I want Thymeleaf to replace the “lid” attribute.
I am using the current version of Thymeleaf (2.1.2) with the Google App Engine.
source
share