Putting it together

Now that everything works separately, it's time to assemble everything. We will do this in three steps:

  1. Move the upload form to the profile page and remove the old upload page.
  2. Change the submit button on the profile page to trigger the taste search directly.
  3. Change the home page of our application. It should display search results matching our users' tastes right away. If they are unavailable, go to the profile page.

I encourage you to try to do it on your own. You will run into very manageable problems along the way but you should know enough to resolve them on your own. I believe in you.

OK, now that you have done the work (you have, haven't you?), let's take a look at my solution.

The first step is to remove the old uploadPage ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.