Homework 5
CS320, Winter 2012


Due: Monday, March 19

Please upload your files to CSNS. The files should include all the source code, documentation (optional), and an HTML file hw5.html which contains a link to your application deployed on the CS3 server. Note that file uploading will be disabled automatically after 6PM of the due date, and no late submissions will be accepted for this assignment.

[CS320Wiki]

This is an extra credit assignment.

Continue to work on CS320Wiki and implement the following features. Again, the application must use MVC architecture, and all features described in previous assignments must work.

1. (20pt) Display the number of times a wiki page has been viewed. For example: 

Welcome to CS320Wiki. To see all the pages currently hosted on the wiki, please click on Page List.

This page has been viewed 10 times. Last modified by John Doe at 2012-01-10 11:21AM.

2. (20pt) Allow users to revert a page to a previous revision. Note that to revert to a previous revision, you just need to create a new revision which has the same content as the old one.

3. (40pt) Allow new users to create accounts by filling out a registration form as shown below::

Username:

Password:

Retype password:

First Name:

Last Name:

Email:

All the fields in the form are required. Your application should properly handle the following errors:

For each type of errors, output an error message and ask the user to re-enter the data.

Once a user is registered successfully, the user may create and edit wiki pages as described in previous assignments.