0

GWT の .client ファイルと .server ファイルには何が含まれているのでしょうか? このコードを .server および .client ファイルに貼り付けるように求めるいくつかのチュートリアルに従いましたが、これらのファイルの目的が不明ですか? また、XML ファイルと CSS ファイルも含まれます。これらのファイルがどのように相互作用するか知っている人はいますか? 誰でも説明できますか?

その場合、クライアント側にキャッシュするものと、データを取得するためにサーバーに送信する要求も制御できますか?

4

1 に答える 1

2

Code in the client package will get compiled by the GWT compiler down to JavaScript, which will be run in the browser. The bulk of these files are generally cached by default, but you can configure your server to cache these differently if you want. I suggest asking a new question for that though, since that's its own topic.

Code in the server package will run on your server, as Java, and respond to requests from the client.

To learn more about client/server communication, I suggest the official docs. And in general, the Getting Started guide is very helpful for answering the types of questions you're asking.

于 2010-07-30T14:31:16.107 に答える