This very simple shopping cart application utilizes JSPs and servlets as well as an in-memory H2 embedded database.
GitHub – The source code is available at the project’s GitHub repository. The project can be imported as a Maven project and deployed on a Pivotal tc server.
Once deployed, the home page is accessible at the following URL: http://localhost:8080/ShoppingCartDemo.
The application consists of two pages. The first page shows the CD List that the client will select from. When the client clicks the ‘Add To Cart’ link, the selected CD will be added to the shopping cart.
Shopping Cart Demo – CD List page
After a CD is added the client will be taken to the Shopping Cart page where they can update the quantity of CDs in their shopping cart as well as remove items.