Re: compojure 0.6.0: problem getting post arguments with google app engine

2011-02-17 Thread Zhenchao Li
Great, that would be nice! On Feb 18, 12:44 am, James Reeves wrote: > On 17 February 2011 13:54, Zhenchao Li wrote: > > > By the way, when deploying the project it seems compojure somehow uses > > java.rmi.server.UID if you use compojure.handler, and on app engine > > java.rmi.server.UID is not

Re: compojure 0.6.0: problem getting post arguments with google app engine

2011-02-17 Thread James Reeves
On 17 February 2011 13:54, Zhenchao Li wrote: > By the way, when deploying the project it seems compojure somehow uses > java.rmi.server.UID if you use compojure.handler, and on app engine > java.rmi.server.UID is not usable. I'm using ring.middleware to > construct a proper usable handler for app

Re: compojure 0.6.0: problem getting post arguments with google app engine

2011-02-17 Thread Zhenchao Li
It turns out I used this code to start my local dev server using appengine.server/start-server: (start-server index :directory "./war" :join? false :port 8080) forgot to replace index with the new "app". It works fine now, post arguments are correctly captured. By the way, when deploying the proje

Re: compojure 0.6.0: problem getting post arguments with google app engine

2011-02-17 Thread Zhenchao Li
Ah! Turns out when I started the server using appengine.server/start- server I accidently passed in the original index handler! No wonder it did not work. It works just fine now. Thanks for your reply! On Feb 17, 4:07 pm, Zmitro Lapcjonak wrote: > On Feb 17, 5:13 am, Zhenchao Li wrote: > > >    

Re: compojure 0.6.0: problem getting post arguments with google app engine

2011-02-17 Thread James Reeves
On 17 February 2011 03:13, Zhenchao Li wrote: > This is how I define my app: > > (defroutes index >   (GET "/" [] (main-page)) >   (GET "/form" [] (render-page "Vote" (render-form))) >   (POST "/vote" {params :params} (post-vote params)) >   (route/not-found "Page not found")) > > (def app (site i

Re: compojure 0.6.0: problem getting post arguments with google app engine

2011-02-17 Thread Zmitro Lapcjonak
On Feb 17, 5:13 am, Zhenchao Li wrote: >    (POST "/vote" {params :params} (post-vote params)) > The site here is used to capture :params, which is new in compojure > 0.6.0. However I'm getting a empty map in post-vote. I wonder what's > wrong with the above code? Any suggestions? Hints? Have y

compojure 0.6.0: problem getting post arguments with google app engine

2011-02-16 Thread Zhenchao Li
This is how I define my app: (defroutes index (GET "/" [] (main-page)) (GET "/form" [] (render-page "Vote" (render-form))) (POST "/vote" {params :params} (post-vote params)) (route/not-found "Page not found")) (def app (site index)) (defservice app) The site here is used to capture