Homework 1
CS520, Fall 2011


Due: Thursday, October 6


[Readings]

[Account] Send an email to csun@calstatela.edu and ask for account information on the CS3 server. You have to be already enrolled in the class in order to get an account. Note that the account includes a Subversion repository, and a copy of the CSNS2 source code is already imported into the repository for you.

[Development Environment] Check out the CSNS2 source code from your Subversion repository, and set up your development environment as described in the class notes. If you have any questions, post them in the class forum. To avoid confusion, in the assignment descriptions I'll use CSNS2 (i.e. without hyperlink) to refer to the project, and CSNS (i.e. with hyperlink) to refer to the server where you submit your work.

[CSNS] (15pt) Modify the JSP file src/main/webapp/WEB-INF/pages/student/viewSubmission.jspso that it displays the list of the files submitted by the student for the assignment. For each file, display the file name, file size, and the time when the file was uploaded. To see if you code works, create an assignment using the instructor account cysun, then use the student account jdoe1 to submit a few files to the assignment.

HINTS:

[Maven] (5pt)

To submit your code, run mvn package (or the equivalent in Eclipse), which will package your project into a zip file csns2-src.zip. You can find the file under the target folder of your project directory.  Please upload the zip file to CSNS. Note that the size of the zip file should be around 400K, and if yours is large than that, you are doing something wrong (and most likely it's because you have some files under the project directory that do not belong there).

[Subversion] (10pt)

1. After you complete the previous two exercises, commit the changes you've made to your Subversion repository, then create a tag called cs520-hw1.

2. Which of the following files should be version controlled? And why?

Please put your answers to these questions in a file hw1.txt and submit it to CSNS.