Grails flash scope

前端 未结 1 600
小鲜肉
小鲜肉 2021-01-07 05:20

In my Grails app I have a controller action that does this:

def activeMember = {ConfirmSignUpCommand signupCommand ->

    flash.signupCommand = signupCom         


        
相关标签:
1条回答
  • 2021-01-07 06:26

    The flash object would be available to the next request, in your scenario that is the rendering of the confirmPassword.gsp page (many times it's also used to pass objects to another controller via a redirect). When the confirmPassword.gsp page submits that is another request and the object you placed in flash is cleared automatically.

    0 讨论(0)
提交回复
热议问题