I am working with groovy/grails technology, in that from one of the action called changepassword of LoginController, I want redirect at LogoutController's index action..
What should be done to achieve that ?
Thanks in advance...
When in a login
controller you can use the following in your action to redirect to another action on a different controller:
redirect(controller: 'logout', action:'index')
May be the official documentation will be useful? this
See Controller Dynamic Methods - as simple as redirect(action: 'index')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With