Homework 1
CS320, Spring 2013


Due: Thursday, April 18

Please deploy your application on CS3, and upload all source files to CSNS. The source files should include all the source code, documentation (optional), and an HTML file hw1.html which contains a hyperlink to your application on the CS3 server. Note that file uploading will be disabled automatically after 11:59PM of the due date, so please turn in your work on time.


[MiniGOG]

GOG.com is a website where people can buy classic PC video games. In this assignment you are going to develop a web application called MiniGOG which implements some basic features of GOG.com. Your implementation should use servlets or a combination of servlets and HTML pages.

1. (30pt) The Games page by default shows the list of all the games in the system. For example:

Browse Games:
Game Price
Syndicate
$5.99
Dreamfall: The Longest Journey
$14.99
Baldur's Gate 2 Complete $9.99
Add A Game

A user can use the drop-down list to select a game genre, and the Games page will display only the games that belong to the selected genre. Note that the genre of the games displayed should match the option selected in the drop-down list.

2. (30pt) When a user clicks on the Add A Game link, the application shows the Add Game page where the user can add a new game to the system. For example:

Name:
Description:
Price: $
Genre(s): Action
Adventure
RPG
Sports
Strategy

For simplicity we only consider five possible genres as shown in the example. Note that a game can belong to more than one genre. After a game is added, the user should be redirected to the Games page.

3. (20pt) Clicking on the name of a game should take the user to the Game page where all the information about the game is shown. For example:

Baldur's Gate 2 Complete

Will you resist the evil within you and forge a legend of heroic proportions? Or will you embrace your monstrous inner nature and carve a swath of destruction across the Realms? Your story begins anew in the exotic southern kingdom of Amn, amidst the opulence of the sinister capital city of Athkatla. Journey through the fierce, unforgiving wilderness of Amn in your quest for artifacts of awesome power and treasure of unfathomable wealth... Even challenge dragons, if you dare. Such is the life of a legend.

Genre(s): Adventure, RPG
Price: $9.99

Edit | All Games

Clicking on the All Games link should take the user back to the Games page.

4. (20pt) Clicking on the Edit link allows a user to edit the game. For example:

Name:
Description:
Price: $
Genre(s): Action
Adventure
RPG
Sports
Strategy

Note that the form should be pre-filled with the information of the game. After the user clicks the Save button, the application should save the changes and redirect the user back to the Game page.

[NOTES]