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
. Then, add the following content into it and save it:<?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...