J. Blustein

Web-centric Computing

Some Example Code

Servlet Examples: HelloClientServlet

Log of Compiling and Installing

Script started on Mon Oct 29 15:23:32 2001
borg% hostname
borg
borg% 
borg% pwd
/autofs/users/faculty/jamie/public_html/CS3172/examples/servlets
borg% 
borg% ls -l
total 12
-rwxr-xr-x   1 jamie    csfac       1314 Oct 29 15:16 Greeting.java
-rwxr-xr-x   1 jamie    csfac        715 Jul  5 15:57 HelloClientServlet.java
drwxr-xr-x   2 jamie    csfac       1024 Oct 29 14:40 MartyHall
-rw-r--r--   1 jamie    csfac       1990 Oct 29 15:04 greeting.html
-rw-------   1 jamie    csfac          0 Oct 29 15:23 typescript
borg% 
borg% 
borg% javac HelloClientServlet.java
borg% 
borg% 
borg% ls -l
total 14
-rwxr-xr-x   1 jamie    csfac       1314 Oct 29 15:16 Greeting.java
-rw-------   1 jamie    csfac        907 Oct 29 15:23 HelloClientServlet.class
-rwxr-xr-x   1 jamie    csfac        715 Jul  5 15:57 HelloClientServlet.java
drwxr-xr-x   2 jamie    csfac       1024 Oct 29 14:40 MartyHall
-rw-r--r--   1 jamie    csfac       1990 Oct 29 15:04 greeting.html
-rw-------   1 jamie    csfac          0 Oct 29 15:23 typescript
borg% 
borg% 
borg% mv -i HelloClientServlet.class ~/public_html/WEB-INF/classes/
borg% 
borg% 
borg% lynx -dump http://borg.cs.dal.ca/~jamie/servlet/HelloClientServlet

                                Not Found (404)
                                       
   Original request: /~jamie/servlet/HelloClientServlet
   Not found request: /~jamie/servlet/HelloClientServlet
borg% ls -l ~/public_html/WEB-INF/classes/HelloClientServlet.class
-rw-------   1 jamie    csfac        907 Oct 29 15:23 /users/faculty/jamie/public_html/WEB-INF/classes/HelloClientServlet.class
borg% chmod a+rx ~/public_html/WEB-INF/classes/HelloClientServlet.class
borg% lynx -dump http://borg.cs.dal.ca/~jamie/servlet/HelloClientServlet

   Hello Client!

borg% exit
exit

script done on Mon Oct 29 15:25:32 2001

[view source code]


http://www.cs.dal.ca/~jamie/course/CS/3172/examples/servlets/Hello/example-of-compile.html
Version:
29 Oct 2001
CS 3172 Prof:
J. Blustein <jamie@cs.dal.ca>

Valid XHTML 1.0!