Create a project in Eclipse to simulate a ShoppingCart Web Application.

Add the following files to your application in proper directories.

1. Home.html - that will show your Online Shop. ( show at least 10 products). Also add CSS extensively for styling.

2. Cart.java- this would be your servlet that will store the selected products in a List.

3. ViewCart.java - this servlet will display the cart to the client. Also, it will show two links: Continue shopping and Go to Checkout. Add CSS to the response.

4. CheckOut.java - this servlet will display the Total amount the user needs to pay along with the products. Add CSS to the response.

5. Product.java - This file will have Product class. Add appropriate data members and methods.

Modify the web.xml file so that your Home.html is displayed when the root directory is loaded (i.e. as the welcome file)

Add an error page (an HTML page will do) to your application that says "Request not found!".

Modify the web.xml file so that the error page is displayed if a 404 error occurs.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.