(solution) In this exercise, you are asked to write the functionality of a

(solution) In this exercise, you are asked to write the functionality of a

In this exercise, you are asked to write the functionality of a generic

shopping basket; you will use this in several subsequent project exercises. Write a set

of JSP pages that displays a shopping basket of items and allows users to add, remove,

and change the quantity of items. To do this, use a cookie storage scheme that stores

the following information:

The UserId of the user who owns the shopping basket.

The number of products stored in the shopping basket.

A product id and a quantity for each product.

When manipulating cookies, remember to set the Expires property such that the

cookie can persist for a session or indefinitely. Experiment with cookies using JSP and

make sure you know how to retrieve, set values, and delete the cookie.