Homework 0
CS320, Fall 2005
Due: Thursday, September 29
0. Send an email to csun@calstatela.edu
and ask for account information on the CS
server. You have to be
already enrolled in the class in order to get an account.
1. (10pt) Setup a Tomcat server on your home computer as described in
the lecture
notes.
2. (5pt) Upload HelloJSP.jsp
and HelloServlet.class
to the CS server, and put
them under the right
directories such that they can be accessed through the following URLs:
- http://cs.calstatela.edu:8080/username/HelloJSP.jsp
- http://cs.calstatela.edu:8080/username/servlet/HelloServlet
where username
is your login name on the server, for example, cs320stu31.
3. (5pt) Create an HTML file hw0.html,
and upload it using the
turnin
server. The
file should include the URLs to your Hello JSP page and Hello servlet,
and answers to the following questions:
- On the CS server, what is
the command to
- create a directory X
- change from current
directory to directory
/home/username/www/WEB-INF/classes
- copy a file Y from current
directory to directory Z
- rename a file ABC to BCD
- check the permissions of
file F
- change the permissions of
file F so that anyone can read the file
Note that file
uploading will be disabled automatically after 11:59PM
of the due date, so please turn in your work on time.