Home > Gwt > GWT Server Side “Hosted Mode”

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
  1. Joe
    February 18th, 2010 at 08:06 | #1

    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.

  1. No trackbacks yet.

Spam Protection by WP-SpamFree