<2> How can 2 consecutive redirects hold flash messages? I set my flash message in my controller and there are two redirects which are due to a plugin that I can not control. But still I want to keep the flash message up to date. I can only think about liberating the message in session. Is there any new ideas? Need help
Which plugins? If the redirects are happening in the controllers, then you can catch the flash message and reapply for the next request. If the redirect plugin is happening in the controllers, you can increase those controllers, configure your controller for injection instead of the original (in resources.groovy), and handle the promotion of flash messages.
If not, you can put it in your session, the easiest thing to do is to make sure that you want to remove it from the session in the last controller action which provides the final view in the series
Comments
Post a Comment