On 7 oct, 14:26, "Isaac Truett" <[EMAIL PROTECTED]> wrote:
> Those are two different URLs. /IDServlet meanshttp://host/IDServletwhile
> IDServlet meanshttp://host/WhereEverTheCurrentPageIs/IDServlet. In hosted
> mode, your servlet is mapped tohttp://localhost:8888/IDServlet. In web
> mode, your servlet is probably mapped to something 
> likehttp://localhost/myApp/IDServletwhich means that /IDServlet won't work.

...which means you should use GWT.getModuleBaseURL() or
GWT.getHostPageBaseURL() as a prefix to the servlet URL:
 RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
GWT.getModuleBaseURL() + "IDServlet");

(n.b.: you're guaranteed that getModuleBaseURL and getHostPageBaseURL
end with a "/")

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