scalatra-website-examples
scalatra-website-examples copied to clipboard
Unable to get `POST` parameters in `params`
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
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
.