Look at the example. It appears when the user clicks on a button element. The browser does a POST request with the information from the form. The form tag also has another attribute method. If you want to go for extra-mile, you may want to add a message that says “User created” or something. It can also be used for rich HTML email templating. Find centralized, trusted content and collaborate around the technologies you use most. This method comes in handy when calling JavaScript events, like onClick and onLoad. You can use a form for this purpose. The user enters the information in the form, and presses the submit button. How to set or change the default Java (JDK) version on macOS? All you have to do here is to create a RedirectView with appropriate path to redirect. The server handles the form, checking for validation errors. We see our just created user: If we open up the developer tools of the browser, we can clearly see the GET-POST-REDIRECT that has happened: The first GET is the browser that requests the empty form. If you want the user to be redirected after they have submitted their details, then you can use form tags. I tried it out and it worked for me. Thymeleaf 2.1 required the contents of