It sounds like you want to avoid the approach of Apache Tomcat and Clojure servelets (why not do it that way by the way?) CGI allows you to operate any program via the web, but it will be alot slower if you have load everything every time a request is received by the server. My guess is that it will be prohibitively clunky. I saw a good article on using emacs lisp via CGI, which if that is what you want to do, makes sense as the way to do it since there is no other more integrated way (in contrast with Java which is used for server-side web application development all the time). You could use that article to learn about CGI, but there's really not much to it.
There may be some way of keeping Clojure running and thereby avoiding that overhead. This would be similar to if there were a "mod_clojure" for Apache, except mod_clojure (or mod_java-- which really does exist) should allow you greater access and control at the various stages of the request and serving of content. I have not tried using servelets, so I'm not certain what the advantages/ disadvantages are. Mod_java is less developed and has had less people working on it and using it than Tomcat/ servelets, but I don't know much about either really, and have no personal experiences with either of these approaches. On Jul 20, 5:01 pm, "[email protected]" <[email protected]> wrote: > I was wondering what the best way of using clojure as a language for > writing CGI web applications would be. I know that it can be used for > web programming using java web servers, however I want to be able to > develop application which can be simply uploaded to a server and `just > work', like PHP. for which CGI is the only option I know of. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
