I have a simple text input field where i have to set default value from one object and save its final value in other. The following code is not working.
<
So what you need to do is replace th:field with th:name and add th:value, th:value will have the value of the variable you're passing across.