posted 6 years ago
I am trying to bind checkbox value to spring bean as boolean. when use check the checkbox then it will take as true value otherwise false.
This is what I have done so far. I am using `Kotlin` as programming language and `Thymeleaf` with the html page.
html page
this is the bean,
this is the rest controller
the request is hit the controller successfully but how can I bind the value true when the checkbox is check and false otherwise.
Thanks in advance.