Homework 0
CS320, Fall 2004
Due: Thursday, Sep 30
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. (15pt) Setup a Tomcat server on your home computer as described in
the lecture notes.
2. (5pt) On the CS server, create the following directories under your
www directory:
- WEB-INF
- WEB-INF/classes
- WEB-INF/lib
- META-INF
Download HelloJSP.jsp and HelloServlet.class, 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 hw1.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