O'Reilly logo

Spring MVC Beginner’s Guide by Amuthan G

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating views for every view state

We have done everything to roll out our checkout flow, but one last thing is pending, that is, creating all the views that need to be used in the view states of our checkout flow. In total, we have six view states in our flow definition (collectCustomerInfo, collectShippingDetail, orderConfirmation, InvalidCartWarning, thankCustomer, and cancelCheckout), so we need to create six JSP files. Let's create all of them:

  1. Create a JSP view file called collectCustomerInfo.jsp under the directory src/main/webapp/WEB-INF/flows/checkout/, and add the following code snippet into it and save it. In the following code snippet, I have skipped the <input> tags for some of the fields of the Customer domain object. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required