开发者

Redirect to different controller in groovy/grails

开发者 https://www.devze.com 2023-02-11 09:13 出处:网络
I am working with groovy/grails technology, in that from one of the action called changepassword of Lo开发者_如何学编程ginController, I want redirect at LogoutController\'s index action..

I am working with groovy/grails technology, in that from one of the action called changepassword of Lo开发者_如何学编程ginController, 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')

0

精彩评论

暂无评论...
验证码 换一张
取 消