naina naina - 4 months ago 22
Groovy Question

how to send data from one grails application to other grails application

I have created 2 application in grails both are interconnected, now I need to pass data from one application to other, how can i pass using redirect url

redirect(url:'url path')


Well you can pass your data to controller action pretty easily with use of params

Specify the input parameters like below

redirect(uri: "url path", params: [content : "your_data"])

You can pass more than one parameter just add that map to params like below

redirect(uri: "url path", params: [content : "your_data", other_content: "some_other_data"])

Please modify the key value as per your need.