Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get POST parameters in params #8

Open
lovesh opened this issue Mar 26, 2014 · 1 comment
Open

Unable to get POST parameters in params #8

lovesh opened this issue Mar 26, 2014 · 1 comment

Comments

@lovesh
Copy link

lovesh commented Mar 26, 2014

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

@futurechimp
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants