SWE 432 Assignment 9
Fall 2013
Java Server Page Processing: Due 11/19

Modify your previous servlet by replacing the initial front end with a JSP and adding new functionality. As before, your program will have two screens: (1) an initial screen with a blank form for an item and description, with three buttons to enter a predetermined bid, and a text box to manually enter a bid and (2) a screen that presents the item and description, 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), and now with the same three buttons and text box for additional bids.

The jsp must be named your username.jsp (so the professor would save her file as kdobolyi.jsp). Users will initially run the new JSP to generate screen 1. The JSP will replace the doGet() functionality from assignment 8 by displaying the initial screen with a blank form to enter an item and decription. This time, however, that form will use a Java Bean, called ItemForm.java, to pass all of the data to the server (the item name, description, and bid). When the user submits the claim, the JSP will send the form data to the same JSP to process the request, and the response back with be the same as the previous assignment. This time, however, your JSP will have to decide, when it is loaded or called, whether it is displaying a blank form, or whether it has just processed a request. Think about how you want to do this.

Screen 2 should include one more behavior. The user should be able to "restart" by deleting the current description and bids. This could be done in several ways.

You can format the screens as you wish as long as you follow the usability guidelines from class. You can also add additional functionality. Get creative and have fun!

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 web pages as you wish and include extra functionality. Your program will be graded on correctness, and also on the readability and maintainability of the JSP, Java and the HTML they produce (for example, be sure to add carriage returns!).

Note: Please include your name (or names) on all screens so we can quickly see whose project this is, even if we print the screen.

You will deploy your JSP program on the swe432 application server, as detailed in the JSP and Bean Deployment Instructions.

Grading Rubric

The grading for assignment 10 will be as follows:


Submit your program by (1) placing a link to execute the JSP on your class website; (2) deploying your JSP, servlet, and other Java classes on the server; and (3) posting your source files on Blackboard. Partners' websites should both link to the same web page. 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