flash scope?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

flash scope?

sarmbruster
In Grails there is the notion of flash scope variables attached to a request, see http://grails.org/doc/latest/ref/Controllers/flash.html.
What would be the preferred way to have this for ratpack?

Cheers,
Stefan
Reply | Threaded
Open this post in threaded view
|

Re: flash scope?

tomaslin
Complete stab in the dark here, but you could set a session cookie and clear it once it has been read.
Reply | Threaded
Open this post in threaded view
|

Re: flash scope?

Luke Daley
Administrator
In reply to this post by sarmbruster
There's nothing like flash support right now and I'm reluctant to add it. It's a violation of the way HTTP works.