Reputation: 2113
I want to create this get URL with Thymeleaf. where token is a model attribute
<form method="get" th:action="@{/validate/{id}/${token}/.html(id=${user.id})}" >
but token is not replaced:
<form method="get" action="/validate/68/${token}/.html" >
Upvotes: 0
Views: 69
Reputation: 6912
The variable template is the part of Thymeleaf Link URLs. You may have as many as you like, just add them to the parameters list, separated by comma. Something like the following ...
<form method="get" th:action="@{/validate/{id}/{token}/.html(id=${user.id}, token=${token})}" >
Upvotes: 2