With thymeleaf, using th:object
, you need to reference the fields of that object with *{}
<form th:object="${product}" method="get" th:action="@{/details}">
<table border="1" width="600" >
<tr >
<td ><span th:text="*{tytul}"></span></td>
<td>
<span th:text="*{opis}"></span>
</td>
<td><span th:text="*{adres}"></span></td>
</tr>
</table>
</form>
assuming tytul
, opis
, and adres
are fields of product
. Unless it's a type, don't forget
Catalog product = catalogEndpoint.getByTitle(site);
model.addAttribute("product", product);
in your details
controller method, otherwise you won't have a Catalog
model attribute.