-1

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

4

1 回答 1

0

数据控制器:

class DataController {

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

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

显示.gsp:

...........
<!-- show response data -->
${myData}
<!-- thats it -->
于 2012-12-13T05:54:58.417 回答