grails中的重定向问题

时间:2014-02-22 09:08:19

标签: grails redirect controller views

我是grails环境的新手,我正在尝试创建一个应用程序,我希望消费者填写表单,当消费者提交时,他或她将被重定向到控制器 名为new。这样我就可以弹出一个弹出窗口。

package mailtest

class SendController {

def index() { }

def send = {
    sendMail{
        to "admin@oneroofcorp.com"
        from params.email
        subject "Requirement Specification Document"
        body "Requirement Specifiction details \n Company Details \n\n Name : ${params.cname} \n Address : ${params.cadd} \n Contact No : ${params.cpn} \n email : ${params.cemail}\n \n Contact Person\n\n Name : ${params.name}\n Phone No : ${params.pn}\n Designation : ${params.designation}\n\n\n Project Domain : ${params.pd}\n About Project : ${params.aproject} \n Goal of Project : ${params.gop}\n Features ${params.feat} \n Desired Audience : ${params.audience}\n Timeline : ${params.tl0}\t${params.tl1} \n Budget : ${params.budget}\n Refrence : ${params.refrence}\n Remarks : ${params.remarks}"
     }
     forward controller: "new", action: "index"
     //redirect(controller:"new",action:"index")
    }
}

我尝试重定向视图等。

0 个答案:

没有答案