Question: A cookie generator program needs to be created with help of JSP. The welcome page will have three options : Generate Cookie, Display Cookie and
A cookie generator program needs to be created with help of JSP. The welcome page will have three
options : Generate Cookie, Display Cookie and Delete Cookie. When a user clicks on
Generate Cookie button, it will move to "CookieGenerator" Page. The
CookieGenerator Page will take a name, value & age for a Cookie and on submit it will
store it in Cookie object. The "DeleteCookie" page will help to delete a specific cookie,
it will ask which name of cookie to delete, in order to delete the cookie make use of
appropriate inbuilt function. The "DisplayCookie" page will list out all the cookies that
are stored in Cookie Object in a tabular form ( Name - Value ). Make sure that if the
cookie is expired or deleted, then it should not be displayed on "DisplayCookie" page.
Entire code should be done using Servlet only.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
