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:
- Create a JSP view file called
collectCustomerInfo.jsp
under the directorysrc/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 theCustomer
domain object. ...
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.