注意:第二个操作仅允许 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'
}
最佳答案
尝试前进
def save()
{// did save operation here
forward action:'booked'
}
def booked()
{
//did the operation related with this
render view :'payment'
}
传递给save的所有参数将直接传递给booked方法。这是您需要的吗?
关于grails - 如何使用 post 请求方法将一个操作重定向到另一个操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32029468/