You are right. A flash message is not supposed to get data from the controller to view.
Suppose you have the following code:
Ok(something.render()).flashing("myitem" -> "item1")
And your view has something like this:
flash.get("myitem").getOrElse("")
You will get an empty value. Instead you would be forced to use Redirect
s, so I think this is a bad idea