95-733 Internet Technologies Fall 2010 Due: 11:59 PM Wednesday, September 8 Read the article by Philip McCarthy on Ajax at: http://www.ibm.com/developerworks/library/j-ajax1/ 1) Build a working Ajax shopping cart using the code from the article. So that the TA's have an easy time grading the assignments, Netbeans and Glassfish will be used as demonstrated in class. Name your project ACoolAJAXShoppingCart. 2) Add a button to each item displayed so that the user may delete items from the shopping cart. Your delete button will behave like the add button, but will count down rather than up. If an item is not currently in the cart then a delete request will be ignored. If a delete request causes a quantity to go to zero then the deleted item will be removed from the cart and no longer displayed. Name your project ACoolAJAXShoppingCartImproved. 3) Modify your solution to part 2 so that it uses JSON rather than XML. You are required to use the Google JSON libray found here: http://code.google.com/p/json-sans-eval/. Note that your servlet will generate a content type of application/json and your XMLHttpRequest object will return JSON via the responseText property rather than the responseXML property. This part requires that you design a JSON string that corresponds to the XML shopping cart. Be sure to see Google's example at the link given above. For a careful description of JSON see http://www.json.org/ Name your project ACoolAJAXShoppingCartImprovedJSON. For full credit, you are required to document parts 2 and 3 only.