Pergunta

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.

Foi útil?

Solução

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.

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top