| Handler for writing handlers in tcl.
Anytime a request is made, call the respond callback
in the tcl code, which is provided with the
sunlabs.brazil.server.Request object as an argument.
This provides a bare-bones tcl interface. The startup script, which is
sourced once upon startup,
should provide a friendlier interface.
One Tcl interpreter is started for each session.
The SessionID property of the request is used to choose the session.
if no Session ID is available, a single interpreter is used for each
request.
The interpreter is Initialized the first time it is referenced for a
session, or if the "SessionID" variable is NOT set.
This handler requires that tcljava.jar and
jacl.jar jar files (both available
)here.
The following server properties are used:
- callback
- The name of the TCL script to call at each request.
Defaults to
respond .
- prefix
- The URL prefix to match (defaults to "/").
- script
- The name of the TCL file sourced on startup.
The
TclHandler.init parameters a make available as the global
variables
prefix and server .
- suffix
- The URL suffix to match, if any.
author: Stephen Uhler version: 1.16, 00/12/11 |