开发者

GWT applications and the returned response from the server

开发者 https://www.devze.com 2023-01-23 16:20 出处:网络
I have some GWT application that run on the server. we are subscripting with some solution that pings this application in a regular interval of time.

I have some GWT application that run on the server.

we are subscripting with some solution that pings this application in a regular interval of time. The point is, this solution (service) checks the returned response from the server to contain some pre-defined keywords.

But as you know, GWT return plain empty HTML page with the data contained in the .js file.

So, the Ping service will not be able to exmain the pre-defined keywords, Is this statement true??

And if this is ture, cannot we find any workaround solution to solve such problem?

Thanks.开发者_StackOverflow


The problem you are facing is related to the crawlabitlity of AJAX applications - Google has some pointers for you :) Generally, you need a headless browser on the server to generate the output you'd normally see in the browser, for example see HtmlUnit.


Only the initial container page and the loader script that it embeds are HTML & JS. Afterwards, you use GWT's RPC mechanism to exchange Java objects with the server, or Ajax (eg. RequestBuilder) to exchange any kind of data with the server. you name it: JSON, XML, plain text, etc.

0

精彩评论

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