1 | initial version |
Example:
<div th:object="${sourceDTO}" th:with="targetDTO=${new targetDTO()}">
Example:
<input type="text" th:value="${sourceDTO.name}" th:field="*{name}">
In this example, the value of the "name" property in the sourceDTO is transferred to the "name" property in the targetDTO.
Example:
<p th:text="${targetDTO.name}"></p>
In this example, the value of the "name" property in the targetDTO is displayed in a paragraph element in the HTML template.