Those are two different URLs. /IDServlet means http://host/IDServlet while
IDServlet means http://host/WhereEverTheCurrentPageIs/IDServlet. In hosted
mode, your servlet is mapped to http://localhost:8888/IDServlet. In web
mode, your servlet is probably mapped to something like
http://localhost/myApp/IDServlet which means that /IDServlet won't work.
On Tue, Oct 7, 2008 at 7: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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---