Flow 5 – controller redirecting to a View with a form

Now, let's shift our attention to creating a simple form to capture input from the user.

The following steps must be observed:

  1. Create a simple POJO. We want to create a user. We will create a POJO user.
  2. Create a couple of Controller methods—one to display the form and the other to capture the details entered in the form.
  3. Create a simple View with the form.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset