문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top