Grails 如何在 controller 中重定向

可以使用下面的方法进行页面重定向[code]redirect(action: “show”)

redirect(controller: “book”, action: “list”)

redirect(controller: “book”, action: “list”, plugin: “publishingUtils”)

redirect(action: “show”, id: 4, params: [author: “Stephen King”])

redirect(controller: “book”, action: “show”, fragment: “profile”)

redirect(uri: “book/list”)

redirect(url: “http://www.blogjava.net/BlueSUN”)[/code]你可以在这里指定一个 controller 和 controller 中的 Action。