### This works =>
Redirect(routes.Users.show).flashing("msg" -> "hello")
### This does not =>
Ok(html.user.show()).flashing("msg" -> "hello")
Both versions use the SAME template.
def index = Action {implicit request =>
// flash is NOT shown:
// Ok(views.html.index()).flashing("msg" -> "this should work")
// flash IS shown:
// Redirect(routes.Application.thisworks).flashing("msg" -> "this
works")
}
def thisworks = Action {implicit request =>
Ok(views.html.index())
}
On Nov 26, 11:42 am, getagrip <getag...@web.de> wrote: