SWE 432 Assignment 8
Fall 2013
Servlet Processing: Due 11/12


The reason some people don't recognize opportunity is because it often comes disguised as hard work.

This assignment has three parts that will both be implemented in a servlet. First, you will implement doGet() to display your HTML with a blank form from the previous assignments. Second, you will implement doPost() to add functionality for your submit button. You will implement functionality for the starting bids. The doPost() method should redraw the empty form, and include a count of how many of each of the predefined starting bids have been chosen, followed by a list of any manually entered bids (this list should not repeat any of the predefined starting bid values). Think about how you will store these values between requests to the server (we don't need a database for this, but one could be used...there are easier implementations for something this simple). You could use sessions if you like, although they will only work for a single client. You could try using context/container sessions, or just a simple text file.

You can format the screens as you wish as long as you follow the usability guidelines from class. Get creative and have fun! You might notice that I have left a few things unspecified in the assignment. I expect you to think about these for the future assignments, but you do not need to solve them now.

As before, you can work with a partner or alone. You can work with the same partner as the previous assignment, or a different partner.

Within the above constraints, feel free to format the output web pages any way you like and include extra functionality if you like. Your program will be graded on correctness, and also on the readability and maintainability of the Java and the HTML that it produces (for example, be sure to add carriage returns!).

You will deploy your servlet program on the swe432 application server, as detailed in the Servlet Deployment Instructions. (This is "apps-swe432.vse.gmu.edu", not "zeus.vse.gmu.edu").

Warning: You have two weeks to make sure you have time to deal with deployment issues. I strongly advise you to (1) get your HTML exactly as you want it, then (2) embed it into the doGet() method of a servlet and get that part to work. Then, (3) work on the doPost() parts. I also strongly advise you to start early. This will take longer than previous assignments.

Grading Rubric

The grading for assignment 8 will be as follows:

Submission

Submit your program by (1) deploying your servlet on the server, and (2) placing a link to the servlet on your class website, (3) posting your servlet source on Blackboard. Partners' websites should both link to the same web page. Your java file should have the name Assignment8.java. NOTE: We will access each assignment shortly after the due date and not look at your web site afterwards.

Making your web page and program available to me and the TA is your responsibility. If we cannot run your program then you will not get credit. Be sure to test access before the due date.



Back to course homepage