Created
December 21, 2011 11:20
-
-
Save ayush/1505675 to your computer and use it in GitHub Desktop.
Play 2.0 Controller Parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val updateEmployeeInput = Form( | |
of( | |
"id" -> of[String], | |
"name" -> of[String], | |
"department" -> of[String], | |
"salary" -> of[String] | |
) | |
) | |
def updateEmployee() = Action { implicit request => | |
val (id, name, department, salary) = updateEmployeeInput.bindFromRequest.get | |
//respond | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment