Re: Need some help with static files and ring...

2010-10-21 Thread Luc
Hi, I do have the web-content key. I had to postpone work on this issue (I'm waiting for my flight right now to get the ClojureConj). They were too many items in the checklist before I could leave.. I'll resume on this either while in Raleigh or upon my return. Right now I feel a bit stunned by

Need some help with static files and ring...

2010-10-18 Thread lprefontaine
Hi everyone, I have been banging my head on the walls for a few hours now and really cannot figure out the proper way to serve static files in a Compojure application deployed on Tomcat or Glassfish... Feeling pretty dumb in fact... I tried to configure the default servlet to catch up requests

Re: Need some help with static files and ring...

2010-10-18 Thread Linus Ericsson
This tutorial covers the subject pretty well, I assume you've already read it. http://mmcgrana.github.com/2010/07/develop-deploy-clojure-web-applications.html according to it you should use Next, include the necessary Ring middleware: (:use ring.middleware.file) (:use

Re: Need some help with static files and ring...

2010-10-18 Thread lprefontaine
This is a more recent tutorial than what I had in my hands up to now so I'll work on it tonight and look at the example app closely. Thank you Luc P. Linus Ericsson oscarlinuserics...@gmail.com wrote .. This tutorial covers the subject pretty well, I assume you've already read it.

Re: Need some help with static files and ring...

2010-10-18 Thread David Jagoe
Hey Luc, Are you deploying to Tomcat using a war file? Are you perhaps missing the :web-content key in your project.clj file (I presume you're using Leiningen + leiningen-war) (defproject myproject 0.0.1 :description :dependencies [[org.clojure/clojure 1.2.0] ... ]

Re: Need some help with static files and ring...

2010-10-18 Thread James Reeves
On 18 October 2010 19:06, lprefonta...@softaddicts.ca wrote: The routes are the following (after several attempts with the file wrapper): (defroutes app-routes   (GET /patient [patient-id]     (render-page Dossier médical) (render-page (load-patient-mr patient-id)))  (GET /req req (str