2
注意:第二個動作只允許POST方法。我們無法通過用戶執行該操作。如何使用發佈請求方法將一個動作重定向到另一個動作
static allowedMethods = [save: "POST",booked:"POST"]
def save()
{
// did save operation here
redirect action:'booked'
}
def booked()
{
//did the operation related with this
render view :'payment'
}
可能的重複http://stackoverflow.com/questions/9820797/how-to-redirect-to-an-external-url-using-post-in-grails –
你究竟想要做什麼? – injecteer