head	1.1;
access;
symbols
	JSERV_0_10_PREVIEW:1.1.0.6
	JSERV_0_9_11:1.1.0.4
	JSERV_0_9_12:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	98.04.02.01.25.23;	author ed;	state Exp;
branches;
next	;


desc
@@


1.1
log
@This is a simple way to use JServ, which connects the webserver with the
Java VM via a CGI.
@
text
@servlet.cgi:

by Alexei Kosut
August 25, 1997

This is a CGI to run Java servlets. It needs to be run in conjunction with
JServ (http://java.apache.org), which must be run in manual mode.

This is a C program, which should compile on any ANSI C compiler with Unix
(POSIX.1) libraries. You will need to edit the C source if your JServ runs
on a port other than 8007; change the JSERV_PORT define.

* To compile on Unix:

Set the CC and CFLAGS variables in the Makefile to what your system needs,
then type "make". The resultant servlet.cgi will be your CGI.

* To compile with Microsoft Visual C++ on Windows:

Type "nmake /f servlet.mak", or open servlet.dsp in Visual C++ and use the
"Compile" menu option. Either way, a servlet.exe file will be created in
the Debug or Release directory (depending on which version you compile).
This is your CGI script.

* To use:

Simply call the servlet as path info after the CGI's URI. For example,
"http://servername/path/to/servlet.cgi/SnoopServlet" will run the
SnoopServlet class. Any extra path info or query strings will be passed
onto the servlet.

If you want to map a file extension/media type to a specific servlet,
you'll need to consult your server's documentation on how to do that. This
CGI cannot perform that function internally.
@


