For this recipe, we will explore how Play applications allow us to use custom binders for path parameters. These come in handy when you want to simplify your declaration of routes and corresponding actions by dealing with model classes in the routes file and a method signature of actions instead of individual properties and fields declared as parameters.
For Java, we need to take the following steps:
foo_javaapplication with Hot-Reloading enabled.
foo_java/app/controllers/Products.scala. Once created, add a product case class and companion object, the product form object, and two routes (the first to display our selected product in a form and the second as the PUT action ...