The check point

In this chapter, we added two controllers, the PictureUploadController, which is in charge of writing uploaded files to the disk and handling upload errors, and the SearchController that can search tweets from a list of keywords with matrix parameters.

This controller then delegates the search to a new service, SearchService.

We deleted the old TweetController.

We created a session bean, UserProfileSession, to store the information about our user.

Finally, we added two things to WebConfiguration. We added the error pages for our Servlet container and support for matrix variables.

The check point

On the resources side, we added a picture representing an anonymous user and a static page to handle errors. We added the file upload to profilePage and got rid of the old searchPage.

The check point
..................Content has been hidden....................

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