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 – 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:

  1. Open pom.xml; you will find pom.xml under the root directory of the project.
  2. 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.
  3. A Select Dependency window will appear; enter Group Id as org.springframework.webflow, Artifact Id as spring-webflow, Version as 2.3.3.RELEASE, select Scope as compile, and click on the OK button and save pom.xml.
  4. Create a directory structure, flows/checkout/, under the directory src/main/webapp/WEB-INF/ and create an XML file called checkout-flow.xml ...

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