开发者

grails + gwt request handling via controllers

开发者 https://www.devze.com 2022-12-11 15:00 出处:网络
I am new to gwt. I am 开发者_运维百科trying to integrate gwt+grails.Can anybody provide me a good example for handling the request using grails controllers and not a custom servlet.I will be really th

I am new to gwt. I am 开发者_运维百科trying to integrate gwt+grails.Can anybody provide me a good example for handling the request using grails controllers and not a custom servlet.I will be really thankful if anybody can guide me :)


I had some success by returning json from grails controllers. Look here for more info. Then, on the gwt client side, create javascript "overlay" types, and then use RequestBuilder to make a request to the grails controller to retrieve json. Here is a good tutorial, but you can skip the section that describes how to create a servlet to return json, because your grails controllers will do that.

0

精彩评论

暂无评论...
验证码 换一张
取 消