Homework 1
CS320, Fall 2007


Due: Friday, October 12

Please upload your files to CSNS. The files should include all the source code, documentation, and an HTML file hw1.html, which contains a link to your servlet 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.


[Reading]
[Movie Review Site]

For this assignment, you are going to write a servlet that implements an movie review web application, which allows users to post their ratings and reviews of movies.
Welcome to CS320 Movie Reviews
Title Avg. Rating
The Game Plan 9.0
The Kingdom N/A
Resident Evil: Extinction 7.9
Good Luck Chuck 6.5
3:10 to Yuma 8.6
Add A Movie

For this assignment, you need to have at least five movies. If the movie has not yet been rated by any user, the Avg. Rating column should show N/A.

Title:

After the user clicks the Add button, and if the movie is added successfully (i.e. the title of the movie is not empty and it's not a duplicate of an existing movie), the user is redirected back to the movie list page, where the newly added movie should be displayed.

The Game Plan
Average Rating: 9.0
User Reviews:
Juli Lynn Says: Excellent movie with a twist at the end! Rating: 10
What a pleasant surprise!! We laughed harder than our kids! Our son and daughter enjoyed it equally, which I was worried about at first because my 7 year old daughter isn't exactly into football. However, the little girl in this movie is so cute and hilarious that football played second fiddle to her. I really, really recommend taking your kids to this movie. It is good clean fun, and the PG rating actually surprised me. There's even a twist at the end that added a more serious dimension to an otherwise funny but predicatable movie. Enjoy it!!
Large Sarge Says: Review from a Family Man Rating: 8
This evening, I took my wife and son to this movie, fully expecting to suffer through poor acting on the part of the Rock, but that did not deter me. The movie itself was well written, and all actors "other than the Rock" performed very well. I walked out feeling very good about my choice of a family movie.
There was no swearing, sexual innuendo, nor open alcohol usage. While I would usually wait for such a movie to come to DVD, I don't regret seeing this film as a family activity.
Dontbelievethem Says: I'm glad I don't believe um Rating: 9
If you read a majority of the "Real" critics, sometimes you wouldn't see a movie. And I really don't know where they come from or what they expect. Take the movies at face value and who they are aimed at. The Game Plan in my opinion was well worth seeing. I was pleasantly surprised at the story line and acting. A good,clean,tasteful movie complete with the happy ending. Don't over analyze it just sit back and look for the humor and know that it will entertain the kids.
Rate This Movie
Title: The Game Plan
Your name:
Rating:
One Sentence Summary:
Detailed Review:

After the user clicks the Save button, the user is redirected back to the movie review page, where the newly added rating/review will be displayed.

[NOTES]