Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i render to the gsp view of other controller?

I m new to grails,just started with a small application,

I'm searching a solution for below problem,

Can any one tell me how can i render to GSP view page of other controller from current controller view page.

With advance Thanks, Laxmi.P

like image 237
Nandita Avatar asked May 05 '11 11:05

Nandita


1 Answers

You can use either render(view: '/ctrlr/action', model: [fooInstance: foo]) or redirect(controller: 'ctrlr', action: 'action') controller dynamic methods in your action, depending on if you need to user a model you already have, or to completely redirect to that action's logic.

If you're asking about GSP code, there is a render tag.

like image 118
Victor Sergienko Avatar answered Sep 28 '22 13:09

Victor Sergienko