John Rowland wrote:
> 
> I assume the answer is yes, but can TclKit be used to house a backend
> database for tclHttpd server?  How do you get TclKit to intercept the
> cgi scripts run on the tclHttpd server?  Can you suggest a good
> resource to get a good basic understanding of using a browser as a
> front end and passing data back and forth between the browser and
> TclKit?

As exercise, I just wrapped up the TclHTTPD server as scripted document.
With the new VFS-based TclKit, this turns out to be trivial:
        http://www.equi4.com/previews/tclhttpd.README

As for tying tclhttpd to the MetaKit database included in TclKit - I did
this a long time ago (before TclKit existed, using the Mk4tcl extension)
by inserting database calls in tclhttpd ".tml" template files.  There
are a lot of ways to do such things - it can be as simple as inserting
an "mk::file open" call at startup,  then you'll have an open datafile
at your disposal as long as the server is running.  Note that when
tclhttpd is running as scripted document, all "mk::*" commands can be
used anywhere inside it since the "package require" is implicitly done.

-jcw

(CC'd to the tclhttpd mailing list)



Reply via email to