Retrieve the flash scope implicitly from the request.
Retrieve the flash scope implicitly from the request.
For example:
def index(name:String) = Action { implicit request => val message = request2flash("message") Ok("Got " + message) }
Retrieves the session implicitly from the request.
Retrieves the session implicitly from the request.
For example:
def index(name:String) = Action { implicit request => val username = request2session("username") Ok("Hello " + username) }
Retrieve the language implicitly from the request.
Retrieve the language implicitly from the request.
For example:
def index(name:String) = Action { implicit request => val lang: Lang = request2lang Ok("Got " + lang) }
(Since version 2.6.0) See https://www.playframework.com/documentation/2.6.x/MessagesMigration26
Useful mixin for methods that do implicit transformations of a request