Summary

In this chapter, you learned how InternalResourceViewResolver resolves Views, and you saw how to activate RedirectView from a Controller's method. You learned the important difference between redirect and forward and also found out about Flash attributes. After that, you saw how to host static resources files without going through Controller configuration. You discovered how to attach a static image file to the product details page. You learned how to upload files to the server. You saw how to configure ContentNegotiatingViewResolver to give alternate XML and JSON Views for product domain objects in our application. Finally, you made use of HandlerExceptionResolver to resolve exceptions.

In the next chapter, you will learn how to intercept regular web requests with the help of an interceptor. See you in the next chapter.

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

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