CSC 241 Lab 1

(Due January 29th, 2003)

HTML & Applets


Theme ...

This lab is designed to get you set up for the web and running applets. In the process, you will learn to operate effectively in a SUN workstation environment. You may already have a webpage, or you may not. Either way, you need to make one for this course. Some of your programming assignments and labs will have applet front-ends and you will make them accessible through this webpage. This should help me find your applets quickly when evaluating them or when helping you find your bugs. My 241 page will be linked to yours once you complete this lab. Your web page for this course will consist of a header, title, a little text, and some links. Feel free to add things to it, but, please don't clutter it with graphics and things that don't relate to the course.

You will first copy some important files, create some directories, and set the needed protections to get things started. You will make some modifications to your Sun workstation environment. The next step is to fire up netscape and bring up this page. There are several links in this page that are only meaningful in a web browser. For example, part of the way into this lab, you will bring up a webpage that you will copy from and paste into an xemacs window which you will also have open at the time, effectively, creating your webpage with a few key strokes. I could have just given you the template to copy at the start, but, this is a good practice for handling multiple windows. This lab ends with you copying an applet and making it accessible from your page. Once you have completed all tasks, you will have a web page like 241.html.

Set up your workstation environment:



Follow these steps in order:

Login on a workstation and perform the following UNIX commands in your Terminal window:

Creating necessary directories

You need to be in your home directory.

  1. mkdir public-html--You may already have such a directory.
  2. mkdir public-html/classes
  3. mkdir public-html/classes/csc241

Setting permissions

  1. chmod og+rx .--don't forget the dot
  2. chmod og+rx public-html
  3. chmod og+rx public-html/classes
  4. chmod og+rx public-html/classes/csc241

Netscape

Create 241.html

Make your page accessible to others

The following will take place in your Terminal window:

Testing your page

Type the URL http://www.oswego.edu/~your user name/241.html in the Location text area of your netscape window. Your page should load up in all its glory! Return to the lab1 page.

Note: You may come across pages on the Web that have features that you like. If you want to see how they are implemented, you can use the Document Source option in the Netscape's View pull-down menu. This will show the html code generating the page. You can also save a web page in your account via the Save As ... option available in the File pull-down menu.

Make an Applet

I am assuming that you are in your public-html directory in your Terminal window. pwd is the unix command that tells you where you are. Type each of the following commands:

Simply, go back to your 241 page and click on the hello1 link there. The Applet should load up.

Hand in

email the URL for you 241 page to mohammad@oswego.edu, it should be something like this: http://www.oswego.edu/~your_user_name/241.html