GWT Server Side “Hosted Mode”
How to tell if the server side is running in the hosted mode. A quick an dirty way I found was to check for the request gwt.codesvr.
Why would you want to do this. Actually, we generate the hosted.html file in a servlet and some of the embedded items change based on whether we are in a live app server or the hosted one.
Also, GWT.script() only works on the client side. Would have been nice to use this on the server side also.
Categories: Gwt
We use guice, and inject different properties files for different servers to customise their setup.
When running devmode we simply look at a property that says it’s using devmode.