X Windows / Web Example
This collection of web pages and software is an example of the
interactive graphical user interface between Gnu Common Lisp and X windows.
It includes use of the WeirdX applet that emulates an X server and
allows this interface to a Lisp program to be delivered through a
web page and used via any web browser that supports Java.
The software has the following components:
- example.html is a trivial web page with a link to
lispserver.cgi . Note that lispserver.cgi
is in the cgi subdirectory relative to this page that
starts it.
- lispserver.cgi contains the applet and starts the next
page, nph-lsx-action.cgi . It also gives the user an
opportunity to edit the path to the user's machine; this will
end in :2.0 since the applet is set up to run as :2.0
- The applet is weirdx-1.0.32-rsa.cab which can be
obtained from the Japanese company
JCraft.Com
WeirdX is a Java applet that emulates an X server. By using WeirdX,
the interactive graphical interface to a Lisp program
can made available through a web page and can be used on any
computer and browser that supports the Java Virtual Machine.
- nph-lsx-action.cgi executes Lisp, loading lispdemo.lsp
- lispdemo.lsp loads files, in particular
lispservertrans.lsp, and calls (lisp-server)
which executes the demo.
- lispservertrans.lsp is the compiled version of the file
lispserver.lsp (which is in GLisp).
lispservertrans.lsp is what actually runs; think of
lispserver.lsp as documentation for it.
- An alternative set of files for direct use with an X server
is: lispserverx.cgi, nph-lisp-action.cgi,
and lispdemox.lsp
Links: