For this homework, you will use Jetty, Servlets, Cookies, and HTML Forms to create a "Cookie Monster" website that displays all of the cookies stored for the website, and allows users to add or delete saved cookies.
You must submit this homework to your SVN repository using Eclipse. Your homework, including the src directory and all required source code files must be at the following location:
https://www.cs.usfca.edu/svn/<username>/cs212/homework10/
where <username> is your CS username in all lowercase letters. Failure to properly submit your homework will result in a point deduction.
The explicit locations required for key files are:
https://www.cs.usfca.edu/svn/<username>/cs212/homework10/src/CookieMonsterServer.java
https://www.cs.usfca.edu/svn/<username>/cs212/homework10/src/CookieMonsterServlet.java
You must submit this programming homework by 11:59pm on Friday, April 19, 2013.
Create a Jetty server named CookieMonsterServer running on port 8080, and a servlet named CookieMonsterServlet that:
Responds to GET requests by displaying a webpage that:
Shows the cookies (name and value) currently saved for the site
Displays a form allowing users to add/edit the cookies saved, or delete a particular cookie
Responds to POST requests by:
Creating and saving a new cookie based on the name/value provided in the form, or
Deletes the cookie if necessary.
Here is an example website:
If there are no cookies stored, output a special message. For example:
The exact formatting and design is up to you. You will likely want to use the BaseServlet provided in the Servlets and Jetty lecture page.