Putting Files on the CMS Web Server: The HTML Command
There is now a World Wide Web server running on our CMS system, located at:
http://vm.uconn.edu/
The CMS web server allows you to define your own WWW home page, HTML files, forms, and GIF files on your CMS account. These files can then be read by anyone with a World Wide Web client such as Mosaic or Netscape. You don't have to run your own web server on a workstation, or move the files to someone else's workstation. You can keep your HTML and GIF files on your CMS 'A' disk, and you control which of your files are served out over the web.
Just follow these simple steps to place your files on the CMS web server.
USE TOOLS
HTML
If you need help on the HTML markup language, invoke the HTMLDOC exec from CMS; see especially the Beginner's Guide to HTML. This information is also available in the CMS web server's home page.
HTML filenamewhere
filenameis the CMS filename of your HTML file. The filetype must be HTML, and the file must reside on your 'A' disk.
In addition to previewing the file, the HTML exec also makes the file generally available on the web.
Setup Performed by the HTML Exec
The following setup is performed by the HTML exec.
ISMAP.
Accessing Your Home Page and Individual HTML Documents
Now that you have defined your WEBSHARE FILELIST, your home page, and any other
HTML files, you or anyone else can access them from a World Wide Web client,
such as Mosaic, Netscape, or WWW.
Your personal home page can be referenced with this URL string:
http://vm.uconn.edu/~userid/where userid is your CMS userid, preceded by the tilde character (~).
Someone logged on to our CMS system could access your home page by invoking the CMSWEB command:
CMSWEB ~useridINDEX HTML on the CMS account
useridis used as the default home page.
Specific documents can be referenced with a URL string of this form:
http://vm.uconn.edu/~userid/filename.filetype
Someone logged on to our CMS system could display a specific document on someone else's account with this command:
CMSWEB ~userid/filename.filetype
Any documents which you wish to be served out MUST be listed in your WEBSHARE FILELIST, or in a subdirectory defined in WEBSHARE FILELIST. Only those files listed in WEBSHARE FILELIST will be accessible over the web, so security is not a problem. If you don't have a WEBSHARE FILELIST, nothing on your disk will be accessible over the web.
Writing HTML Documents
Under CMS, you can use XEDIT to create or modify HTML files. In addition,
there is a DCF-to-HTML conversion package, called DCFHTML, located on the TOOLS
disk (enter HELP UCONN DCFHTML for more).
There are numerous packages available for Macintosh and Windows for creating and editing HTML documents.
In addition, if you find interesting documents on the web, you can save the source (HTML), and modify them as you like.
There is a list of WWW and HTML topics available on the web, at
http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/www-info.html.
From CMS, you can invoke the HTMLDOC exec to go to this list.
Of particular interest is a document called A Beginner's Guide to HTML. This document is located at
http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html
Forms
The CMS web server provides forms support. The HTML setup program will copy a
sample form called SAMPFORM HTML to your 'A' disk, and add it to your WEBSHARE
FILELIST.
Information on coding HTML forms can be found near the bottom of the Beginner's Guide to HTML (see previous section).
There are several special fields in SAMPFORM HTML which you should know about.
Sender_emailthen it is added as the Reply-To field in the e-mail headers when the form is sent. This enables the recipient of the e-mailed form to use the e-mail reply function; otherwise, a reply would go back to the HTTPD server. Although you can use any field name you want to prompt for e-mail address, it is recommended that you use Sender_email so that the correct Reply-To field is generated.
Including GIF Files in your HTML Documents
The CMS web server also supports GIF files.
The CMS server provides a set of GIF files, listed in
http://vm.uconn.edu/htlib.htmlThese files can be seen near the bottom of the home page in the CMS web server.
You can reference these predefined GIF files with a partial url of
/htlib/filename.gif
A GIF file residing on your 'A' disk would be referenced as
/~userid/filename.gifGIF files can be referenced as inline, meaning they are displayed automatically as part of the current document. The sample INDEX HTML has an example of an inline GIF file. You can also reference a GIF file as a separate file, using the standard URL syntax, much like a reference to another HTML document; the only difference would be that the filetype (or file extension) would be
.GIF.
Please note that you must list any GIF files in your WEBSHARE FILELIST. They are not added automatically, nor are they displayed, by the HTML exec. Make sure to specify the filemode as asterisk in WEBSHARE FILELIST (for example, MY GIF *). Also make sure to start the filename in column two or greater in WEBSHARE FILELIST.
The VMGIF command can be used to display a GIF file on a graphics terminal, to ensure that it was uploaded correctly:
VMGIF filenameYou must be logged on to a graphics terminal, or use a terminal emulator that supports graphics, in order to use the VMGIF command.
Please note that even though the CMS WWW Server supports graphics, the CMS WWW clients do not. Graphics (GIF files) on the CMS server will display correctly from WWW client programs that support graphics (such as Netscape or Mosaic).
Image Maps
The CMS web server comes with an IMAGEMAP CGI script, which currently only
supports rectangular areas. We have obtained an enhanced version of IMAGEMAP,
from Ben Chi at University of Albany, which supports rectangles, polygons and
circles. In addition, UCC has provided a cgi called IMAGEXY which may help when
designing image maps. It allows you to click anywhere on an image, and displays
the X,Y pixel coordinates of the location you click on.
When you run the HTML setup exec, you will be prompted as to whether you
want to copy down the imagemap samples. The imagemap sample filenames start
with ISMAP
. The root test file is called ISMAPTST HTML
,
which you should be able to open with this URL:
http://vm.uconn.edu/~userid/ismaptst.htmlwhere
useridis your CMS userid, and must be preceded with tilde (~). The ISMAPTST HTML and accompanying files were developed by Ben Chi at the University of Albany.
The file "ISMAPXY HTML" is a slightly modified file, which makes a call to the IMAGEXY cgi. This allows you to get an idea of the dimensions and layout of your image, and hopefully will assist you in developing your image maps.
Notes on Imagemap syntax
These notes were taken from Ben Chi's IMAGEMAP cgi:
There are two formats for image maps: CERN and NCSA. CERN-formatted image maps are identifiable by the extensive use of parentheses therein. This script requires NCSA format for which the entries have the form:
RECTANGLE href x1,y1 x2,y2 (x1,y1 a corner; x2,y2 the opposite corner)
CIRCLE href x0,y0 x1,y1 (x0,y0 locates the center; x1,y1 is an
arbitrary point on the cirumference.)
POLYGON href x1,y1 x2,y2 x3,y3, . . . xn,yn (each xi,yi a vertex; the
last may, but need not, duplicate the
first. In that case n - 1 = number of
sides; otherwise, n = number of sides.)
DEFAULT href What to do if cursor is in no figure.
All the coordinates are in pixels and must be positive integers.
Each href is the absolute URL that should be referenced if the cursor point lies inside the associated figure. It need not include the host and port unless different from that of the server. Example: /foo.bar/polyarea.html. The shape names may be abbreviated to their first four letters; DEFAULT to DEF.
Control Files Used by the CMS Web Server
http://vm.uconn.edu/~useridwhere userid is your CMS userid (account name). The CMS userid must be preceded by the tilde character (~).
From CMS, someone could display your home page by using the CMSWEB command:
CMSWEB ~userid
The HTML Exec will automatically add a file to your WEBSHARE FILELIST when you preview it.
Printing HTML Files on the Mainframe 3829 Printer
In some World Wide Web clients, such as Mosaic, it is possible to save an HTML
document as Postscript. These files can then be printed on Postscript printers.
This can tie up PC or Mac printers, since postscript files usually take a long
time to interpret.
You can upload postscript files and print them on the mainframe 3829 printer located in Operations. For more information, see HELP UCONN PSINT on the mainframe.