“Redirect in grails” Kode Jawaban

Redirect in grails

class TestController {
   def firstAction() {
      redirect(action: "secondAction")
   }	
   def secondAction() {
      render "You were redirected from firstAction to secondAction"
   }
}
Silly Sandpiper

Redirect in grails

def auth()
{
    if (!params.username.empty)
    {
  redirect  (controller: "manageLicences" , action:"checkLicense")
     }
}
Silly Sandpiper

Jawaban yang mirip dengan “Redirect in grails”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya