Re: compiling clojure for a servlet container (tomcat)

2010-06-23 Thread Todd
Adrian/Alex - Thank you for both of your responses. As I'm new to clojure (and lisp in general), it'll take me a bit to puzzle through your code and links. However, I'll use it as an example to study the language. Thanks again! -Todd -- You received this message because you are subscribed

Re: compiling clojure for a servlet container (tomcat)

2010-06-21 Thread Adrian Cuthbertson
1. Loading .clj files Is it possible to load up .clj files from the classpath of an arbitrary java app? For example, could you proxy HttpServlet and run your servlet as a .clj from within a servlet container? Hi Todd, here's a pattern for doing what you want; 1.) Create svlt/Svlt.clj as

Re: compiling clojure for a servlet container (tomcat)

2010-06-21 Thread Alex Ott
Hello AC Notes; AC - to update, simply copy new app clj file/s to WEB-INF/classes and AC reload the context. AC - Borrow http://github.com/weavejester/hiccup for some cool html AC generation stuff. AC - you should be able to adapt the above (namespace requiring) to your AC other java

Re: compiling clojure for a servlet container (tomcat)

2010-06-21 Thread Adrian Cuthbertson
You can use Compojure to build webapp in more convenient way. I should elaborate on my previous post. It was intended not to recommend the clojure way of building web apps (there's plenty of info regarding that - compojure, ring, clout, hiccup, conjure, etc), but rather as a specific, detailed

compiling clojure for a servlet container (tomcat)

2010-06-20 Thread toddg
1. Loading .clj files Is it possible to load up .clj files from the classpath of an arbitrary java app? For example, could you proxy HttpServlet and run your servlet as a .clj from within a servlet container? If not, and you have to gen-class the clojure servlet class, could the servlet bootstrap