Archive

Archive for February, 2010

GWT Server Side “Hosted Mode”

February 15th, 2010 Chris Hane 1 comment

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