You are currently viewing Unable to create a simple project following the Spring Guide tutorial

Unable to create a simple project following the Spring Guide tutorial

This is the tutorial in Java: https://spring.io/guides/gs/validating-form-input/

I cloned the above repo and ran in local and it is working fine.

I’m trying to create the same with Kotlin. Project Link: https://github.com/imranpasha-tech/Kotlin-springweb-thymeleaf-example

This project is also working except it is unable to catch errors and forward them to view.

So, when I try to insert Null values against the allowed values it is supposed to show the validation errors on the form. But that is being redirected to 404

Entering empty/null values here

This empty form should be validated as shown in the tutorial. However, it is not working as expected. Instead it is being redirected to:

Not supposed to happen

Origin tutorial screenshots:

from original tutorial in java working fine.

submitted by /u/hitherto_insignia
[link] [comments]