Summary

At the start of this chapter, we saw how to serve and process forms; we learned how to bind form data with a form-backing bean and read that bean in the controller. After that, we went a little deeper into form bean binding and configured the binder in our controller to whitelist some of the POST parameters from being bound to the form bean. We saw how to use one more special tag, <spring:message>, of Spring to externalize messages in a JSP file. Finally we also saw how to incorporate spring security to do basic authentication to access product add page.

In the next chapter, we will learn more about view and view resolvers.

Get Spring MVC Beginner’s Guide 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.