Here is the code for those two specific classes:
http://gwt-widget.sourceforge.net/docs/xref/org/gwtwidgets/client/util/WindowUtils.html
http://gwt-widget.sourceforge.net/docs/xref/org/gwtwidgets/client/util/Location.html
Besides the usual information it will also parse the query string,
allowing access to parameters individually or as a Map.
Rob
http://gwt-widget.sourceforge.net
http://roberthanson.blogspot.com
>From the Google app tried the following
http://localhost:8888/docimage.View?id=123456789
with this code
public void onModuleLoad() {
// loadingImage.setUrl("images/blanksearching.gif");
// Create an image, not yet referencing a URL.
try{
WindowUtils windowUtils = new WindowUtils();
Location location = windowUtils.getLocation();
System.out.println(location.getHost());
String id = location.getParameter("id");
String url = location.getPath();
System.out.println("path=" + url);
System.out.println("id=" + id);
// Point the image at a real URL.
lbl.setText("id=" + id);
}catch(Exception e){
System.out.println(e);
}
Any thoughts or examples on how to do this?
http://localhost:8888/docimage.View/View.html?id=12345678
I do get the following text leaking out as part of the application when
using http://localhost:8888/docimage.View/View.html
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">