Here's my code, where I'm iterating through:
<tr th:each="category : ${categories}">
<td th:text="${category.idCategory}"></td>
<td th:text="${category.name}"></td>
<td>
<a th:href="@{'/category/edit/' + ${category.id}}">view</a>
</td>
</tr>
The URL it points to is supposed to be /category/edit/<id of the category>
, but it says it could not parse the expression:
question from:https://stackoverflow.com/questions/33753975/thymeleaf-using-path-variables-to-thhrefException evaluating SpringEL expression: "category.id" (category-list:21)