Homework 2
CS520, Spring 2011

Due: Friday, April 22

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


[Readings]

[Calendar]  For this assignment, you are going to implement an online calendar using servlet and JSP. In particular,

1. (40pt) The default page of the application displays the calendar of current month with the current date highlighted, as shown below:
March
April 2011
May
SUN
MON
TUE
WED
THR
FRI
SAT





1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

2. (20pt) If a user clicks on a different month, the application will display the calendar of the selected month.

3. (10pt) If a user clicks on a date, the application displays a message "mm/dd/yyyy is selected", where yyyy, mm, and dd are the year, month, and date of the selected date.