I am creating a web application in Spring Boot with Thymeleaf and learning how to use validation; I have found several examples In the Internet that work quite well in my computer and have copied code from them. However, running my applicatio, I am getting a page with the message "Whitelabel Error Page";
I also get a very long stack trace in the console; the most important part to me are:
I searched the Internet for problems like "Neither BindingResult nor plain target object for bean name 'licensesRequest' available as request attribute" to no avail.
In tne controller I have:
The application does breack in method "public
String licenses" which is called directly from the web page "GetLicenses.html" (showed ahead)", but the problem occurs when the page tries to go to "/fromLicenses" (control method showLicenses).
The important part of GetLicenses.html is:
The more I analyze, I thing that the ideas I have used are correct, although ofcourse I can be wrong; but I am surprised by a part of the message in the stacktrace saying "(template: "Admin/GetLicenses" - line 78, col 31)" because that line corresponds to a part of GetLicenses.html containing:
In the bove code I introduced the two lines indicating "line 78, col 31".
The object, LicensesRequest, does have property:
I really think that I have provide all the information needed without making this text very long, but i would be glad to provide any further information.