How to create shopping cart and store multiple items in it using servlets and session tracking
posted 1 year ago
I have only just started learning about servlets, java and JDBC stuff and would like some help on creating a shopping cart that does the following:
1. Can add multiple items to the shopping cart, so it doesn't wipe the shopping cart once you leave that page or add another item to it.
2. Display the total price of all the items that has been added to the shopping cart.
3. Have an option for the user to remove an item from the cart.
The thing I don't understand is how to store multiple items using some sort of session tracking since I have never learnt it before.
Any help would be appreciated and thank you in advance.