spring - Thymeleaf URI template JSP equivalent -


in jsp used have table , link record using syntax:

<td><a href="<spring:url value="/person/${person.id}"/>">${person.id}</a></td> 

so click link on table move person's details page. achieve same result using thymeleaf, not quite sure how. question is: thymeleaf equivalent? enter image description here

<td th:text="${trip.hrperson}"></td>  <td><a th:href="@{/remove/trip.id}"></a>  ${trip.id}  </td> 

first example displays static value , it's ok, second supposed link fails.

in thymleaf make link follows

<a th:href="@{'/person/' + $person.id}" th:text="${person.id}">my user id</a> 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -