# Spring Shopping Cart Example

Click here to start the Spring Shopping Cart Example

## Description

This is a Java EE 6 Spring Web Flow application created with Spring 3.1, Spring Web Flow 2.3 and Spring MVC libraries. The user interface uses Sitemesh to ensure a unified layout across the different pages of the application.
The application consists of the following Spring Web Flows:

- A log in flow to log into the application.
- A register flow to register a new user.
- An addToCart flow to add items to the shopping cart.
- A checkout flow for the cart checkout process.

To simpify operation, this project is preconfigured to run as a standalone Web project with the 1-Click application launcher on the MyEclipse Server Sandbox, i.e., embedded Tomcat 7 servlet container that ships with MyEclipse. Alternatively, the project may also be deployed to Java EE 6 and higher application servers.

## Requirements

- MyEclipse 2013 or later
- Java SE 6 or greater

## How to Run

Right-click on this project and select either Debug As or Run As, then select "MyEclipse Server Application". Choose a server that you would like to test the application with; MyEclipse will automatically deploy the application to the chosen server and start the server. Note that the home page of the application is automatically opened in an internal web browser only for the MyEclipse Tomcat servers. For other servers please open a web browser internally or externally, enter the home page URL to run and test the application.

## Related Links

- MyEclipse Spring Introduction Tutorial
- MyEclipse Tomcat Tutorial
- This application was built based on the steps mentioned in this blog entry

## Feedback

We hope you found this example project helpful. If you ran into any problems while working with the example project, please feel free to post to our support forums and let us know. Also if you have any suggestions for improvements, noticed something wrong or just wanted to ask questions we encourage you to post and let us know!