Question

I am new to grails environment, I am trying to make an application where I want the consumer to fill the form and when the consumer submits he or she will be redirected to the controller named new. So that I can show a pop up on it.

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")
    }
}

I tried to redirect the views etc.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top