Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Grails で、コントローラーの一部ではないホームページ (index.gsp) にリダイレクトするにはどうすればよいですか?
次のように「/」にリダイレクトできます。
redirect(uri:'/')
renderの代わりにリダイレクトが必要なのはなぜですか? トリックを行うかもしれませんが、私はただだと思いますredirect(uri:'/index.gsp')render(view:'/index')
redirect(uri:'/index.gsp')
render(view:'/index')