Hello,

You need to write for the both mode:

RequestBuilder builder = new RequestBuilder(RequestBuilder.
>
> GET, URL
>                                        .encode("../IDServlet"));


try it!!!


On Tue, Oct 7, 2008 at 6:05 AM, Michel <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I need to call a servlet from my GWT application. It all works fine,
> except that I appear to need different code for hosted mode versus
> deployment in Tomcat. In hosted mode, this works:
>
>
> RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL
>                                        .encode("/IDServlet"));
>
> And when I deploy my application to Tomcat, only this works:
>
>
> RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL
>                                        .encode("IDServlet"));
>
>
> The difference is the '/' before IDServlet.
>
>
> This is rather a nuisance. What can I do about it?
>
> Thank you for your help, and with kind regards,
>
>
>
> Michel
> >
>

--~--~---------~--~----~------------~-------~--~----~
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