Homework 0
CS320, Fall 2007
Due: Monday, October 1
0. 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.
1. (10pt) Setup a Tomcat server on your home computer as described in
the lecture
notes.
2. (5pt) Upload web.xml, HelloJSTL.jsp, and HelloServlet.class
to the CS3 server, and put
them under the right
directories such that the JSP page and the servlet can be accessed through the following URLs, respectively:
- http://cs3.calstatela.edu:8080/username/HelloJSTL.jsp
- http://cs3.calstatela.edu:8080/username/HelloServlet
where username
is your login name on the server, for example, cs320stu31.
3. (5pt) Create an HTML file hw0.html,
and upload it to CSNS. The
file should include the URLs to your HelloJSP page and HelloServlet,
and answers to the following questions:
- On the CS3 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 but only the owner can write to
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.