From the course: Learning GWT

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The host page

The host page

From the course: Learning GWT

Start my 1-month free trial

The host page

- [Narrator] Let's return to the war directory, and look at the host page. The host page is just a typical HTML page, with one notable exception. If you scroll down, there's a script tag, that includes a JavaScript file. This one line is what turns our HTML page from a static website into a dynamic web application. This script tag pulls in the GWT compiled module, which will be at this location: my_first_app/my_first_app.nocache.js. Once the project is compiled, it's a relative reference, and you don't see that file location just yet. But it will be there once the application's compiled. Like any other HTML file, you can include other resources like CSS files and other JavaScript libraries. You can also include your standard HTML if you so desire. But all of this, including the HTML, the JavaScript files, and CSS files, they can all be included in the GWT application itself, which is my preference, because then I don't have to worry about namespacing, CSS collisions, and so on. GWT…

Contents