Yes, thats what I ended up doing (using GWT.getHostPageBaseURL()), thanks for the help.
On Oct 14, 6:35 am, Thomas Broyer <[email protected]> wrote: > On 13 oct, 21:02,mwaschkowski<[email protected]> wrote: > > > > > > > Hi, > > > In hosted mode, my url looks like: > > > http://localhost:8090/xyz.html > > > but when deployed looks like: > > > http://localhost:8090/zzz/xyz.html > > > Because of this slight difference, I'm having a mapping issue. In my > > web.xml, I have a servlet mapping for a regular, ordinary servlet (not > > GWT-RPC): > > > /servletRequest > > > and when I try: > > > Window.open(url, "_blank", "status=0"); > > > when the app is deployed, everything is ok, and url looks like: > > > http://localhost:8090/zzz/servletRequest > > > but when I try to access in hosted mode, the zzz causes problems > > (because in hosted mode there isn't a contextpath, which I find a bit > > weird and don't know exactly how to handle). What is best/easiest way > > to deal with this with gwt 1.7? > > Have a look at GWT.getHostPageBaseURL() instead of hard-coding the / > zzz path segment. > > Or you could just use a relative path in 'url'. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
