I struggled with this for quite a while, so decided to answer my own question...
It's quite possible with the forward
method. Unlike the chain
method, the documentation doesn't mention the model
attribute, but [in grails 2.1.1 at least] it is actually supported.
In Controller One:
def model = [
firstname: params.firstname,
lastname: params.lastname
]
forward(controller:"controllerName",action:"index", model:model)
In Controller Two:
render (view: "/page.gsp")
In page.gsp
Welcome ${firstname} ${lastname},
...
Simple as that...