The GWT widget library (http://gwt-widget.sourceforge.net) provides
this functionality.  You simply say:

String departure =
WindowUtils.getLocation().getParameter("departure");

If you don't want to use the GWTWL, then you can parse the URL
yourself.  First create a native method to get access to the page's
URL and parse out the parameters you need.  Here's an example of a
native method that can do that for you:

public static native String getURL() /*-{
    return $wnd.location.href;
}-*/;

The just use indexOf() and substring() to do the parsing...

-Greg

On Sep 23, 9:36 am, Dirtybit <[EMAIL PROTECTED]> wrote:
> Hi,
> I am building a gwt web app in which users can ask for a navigation
> route between two points.
> The coordinates of the points are stored in a database so the user
> only has to provide two names.
> The names of the points are also available from a portal that we
> developed and contains information about
> these geopoints
> I was wondering if it is possible to pass the departure and
> destination names as url parameters to my gwt app, so as to show the
> route immediately without having to provide them throught the
> appplication ui.
> How can I read these parameters in gwt?
>
> Thanks in advance
>   giannis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to