CSCI A348/548
Lab Notes Seven

Spring 2001 (Second semester 2000-2001)


Assignment 4 help.

Here's what you need to do to install the web chat app:

  1. Take the last class (code) ChatApplet from Thursday notes.

  2. Create a directory chat in
    $TOMCAT_HOME/webapps/ROOT
    and move there.

  3. Then create a file ChatApplet.java in chat with the contents as in the notes of last Thursday (the last class, the most recent version). Note that
    $TOMCAT_HOME/webapps/ROOT
    serves as an htdocs of sorts for Tomcat and chat is just a subdirectory in it.

  4. Take HttpMessage from Thursday notes.

  5. Create a file HttpMessage.java next to the applet.

  6. Check the files for broken String literals.

  7. Also make sure you replace all 21xxx's with your port.

  8. Compile the files and leave them there.

  9. Move to $myServlets to create two files.

  10. One is ChatServlet.java containing the last servlet code from Thursday notes.

  11. The other one is Chat.java (first example Tuesday).

  12. Check files for 21xxx's and broken lines.

  13. Compile and leave them there.

  14. Note that $myServlets has the role of a cgi-bin directory.

  15. It contains server-side programs.

  16. $TOMCAT_HOME/webapps/ROOT is like htdocs

  17. So it contains user-side entities: files and applets.

  18. Applets are also programs, but they run on the client side.

  19. Hence their location on the server (htdocs).

  20. Connect to
    http://burrowww.cs.indiana.edu:21xxx/examples/servlet/Chat

  21. Specify a name, push Proceed, then chat.


Last updated on Feb 22, 2001, by Adrian German for A348/A548