阅读Grails中的响应内容

时间:2012-12-13 00:33:07

标签: grails groovy

我如何阅读Grails中的响应内容(它是二进制数据)?任何示例代码都是 赞赏。

1 个答案:

答案 0 :(得分:0)

DataController类:

class DataController {

    static allowedMethods = [save: "POST", update: "POST", delete: "POST"]

    def doSomeThing() {
        def myData = dataService.dataMethod(params)
        render(view: "show", model:[myData:myData])
    }
............
}

show.gsp:

...........
<!-- show response data -->
${myData}
<!-- thats it -->