Test 2 - Servlets

Assignment     Exercise Due Date Final Due Date
Test 2 Write an Auction Web Application Apr 3, 5:00PM Apr 8, 5:00PM
Description: Using Servlets and the occasional HTML file, write an Auction App. The app should provide the following functionality:
  • A registration screen so buyers and sellers may obtain and log on with a user name (no password required).
  • Sellers must log in with a user name before they are permitted to submit items for sale.
  • Buyers must log in with a user name before they are permitted to place bids.
  • Anyone should be able to view Items for Sale and Item Details without needing to log in.
  • Each Item for sale should have the following properties:
    • Item Summary
    • Auction Item number
    • Current price
    • Number of bids
    • Date & time posted for auction
    • Date & time item closes
    • Seller User name
    • Highest bid
    • Item description.
  • Additionally, the app should implement all functionality as demonstrated in the GUI mockup, below.
GUI: Click here to view a mockup of the app and the screens that comprise its GUI.
Rightclick here to download all the screens.
Hints: You should be able to roughly follow the architecture of the chatroom app that we looked at. Each Item for sale should be an object that's attached to the ServletContext. The Item objects each have the nine properties specified above. Each buyer or seller who registers gets a Session ID.

Of course this is just an exercise. A real auction serializes items and users to a data base but you are not required to do so. When you stop the servlet container, item listings are lost and when the user closes their browser, their user name is lost.
Submission: All source code must be submitted in a ready-to-deploy format:
  • All .java files
  • All .html files
  • All .gif files - if you don't wish to use the gifs included in the mockup, you don't have to. You may substitute text buttons instead.
  • The web.xml deployment descriptor.
  • An Ant build.xml file.
You may submit all files by email if you wrap them in a .zip or .jar file that preserves directory structure. Otherwise, submit a floppy that contains proper directory structure so that your instructor may execute your Ant build file, thus compiling all classes and deploying the app for evaluation.

Please remember to put your name in your source code, your zip or jar file name, and/or on your floppy. Thanks.
Grading: Tests submitted after Due Date incur a 25% penalty. No submissions will be accepted after the Final Due Date.