The hosted.html
file is used only in development mode, and its job is to connect your app to the DevMode browser plugin. It gets loaded when you launch your app appending the gwt.codesvr
query parameter to the URL.
After you have compiled your application, you generally [*] need a server to host it on. To put it simply, launch the DevMode without the gwt.codesvr
query parameter, your compiled files (those giant <hash>.cache.html
) will be picked up instead the hosted.html
).
* I mean generally because if you do not use any server-side technology, but only client side code (ultimately compiled to js), you'd simply need to open up your html host page (that is not hosted.html
but your AppName.html
inside the war
directory). Fairly uncommon though.