Homework 1
CS520, Spring 2013

Due: Thursday, April 11

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..


Avvo is a website where people can seek legal advice from lawyers as well as rate the service of their lawyers. In this assignment, you are going to implement a web application that provides some functions of Avvo. Your implementation must use Servlet, JSP, and the MVC architecture. The data can be stored in application scope, i.e. you do not need to use database for this assignment. Note that no scripting elements are allowed in JSP pages.

1. User Registration (30pt)

The application supports two types of users: regular users and lawyers. To create a regular user account, the following information needs to be provided:

To register as an lawyer, a user must provide some additional information:

2. Lawyer Search (30pt)

A user can search lawyers using any combination of the following criteria:

3.  Lawyer Review (40pt)

A review of a lawyer consists of a title, some text, and 1-5 ratings in three areas: Knowledge, Service, and Overall.

Only users who are logged in can enter a review. Lawyers cannot review themselves.

4. User Interface

Good UI will receive up to 20pt extra credit, and particularly bad UI will receive up to 20pt extra penalty.