Yes, this is possible with "Overriding onRequest".
`@Overridepublic
Action onRequest(Request request, Method actionMethod) {
System.out.println("before each request..." + request.toString());
return super.onRequest(request, actionMethod);
}`
The above code is directly used for the Play site framework (for Java).
For Scala, here is the link.
source
share