Play Controller is a class with a set of related actions. Here Action means a function or method defined in that Controller.
In Play Framework, each Controller does the following activities:
- When the user (customer or client) sends a request to the application, first Play Routing receives that Request.
- Play Routing then hands over that request to the matched Controller. It makes a call to that matched Controller's method.
- Then, Play Controller executes that method.
- If required, the Play Controller interacts with other components, such as Utils and Service.
- The Play Controller receives the model data from other components.
- The Play Controller then passes that model data to the View Template to populate that data.
- The users ...