Time for action – implementing the checkout flow
We will now add Spring Web Flow support to our project and define the checkout flow for our shopping cart. Consider the following steps:
- Open
pom.xml
; you will findpom.xml
under the root directory of the project. - You will be able to see some tabs at the bottom of the
pom.xml
file. Select the Dependencies tab and click on the Add button in the Dependencies section. - A Select Dependency window will appear; enter Group Id as
org.springframework.webflow
, Artifact Id asspring-webflow
, Version as2.3.3.RELEASE
, select Scope as compile, and click on the OK button and savepom.xml
. - Create a directory structure,
flows/checkout/
, under the directorysrc/main/webapp/WEB-INF/
and create an XML file calledcheckout-flow.xml ...
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.