Skip to content

Instantly share code, notes, and snippets.

@icambridge
Created December 24, 2012 17:41
Show Gist options
  • Save icambridge/4370150 to your computer and use it in GitHub Desktop.
Save icambridge/4370150 to your computer and use it in GitHub Desktop.
Get post data from Play2 Scala
val postData = request.body.asFormUrlEncoded.get
val emptyValue = Seq("")
val title = postDate.get("title").getOrElse(emptyValue)(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment