scalatra-website-examples icon indicating copy to clipboard operation
scalatra-website-examples copied to clipboard

Unable to get `POST` parameters in `params`

Open lovesh opened this issue 10 years ago • 1 comments

I tried the http-demo example in 2.2 and i am not getting the POST parameters in the params map. I am getting GET parameters and i am getting the request body. The request body has those parameters but somehow params does not have POST parameters. My sbt version is 0.12.2 and i am running scalatra's default server. I also tried building my scalatra app on sbt 0.13.0 but there also i dont get POST parameters in params but only GET

lovesh avatar Mar 26 '14 04:03 lovesh

Hi @lovesh, sorry to have missed this.

When I build this example, POST params show up - just to make sure we're talking about the same code, I'm running the project at scalatra-website-examples/2.2/http/scalatra-http-demo. I click on the menu item "Form example", and enter the word "test".

When I submit the form, the view correctly displays: You posted: test.

futurechimp avatar Jul 20 '14 18:07 futurechimp