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

后端 未结 3 1801
别那么骄傲
别那么骄傲 2021-02-08 22:40

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 ot

3条回答
  •  终归单人心
    2021-02-08 23:16

    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.

提交回复
热议问题