Thanks, GWT.getHostPageBaseURL helps. On Mar 9, 4:04 am, Chris Lercher <[email protected]> wrote: > Hi, > > you should be able to use GWT.getModuleBaseURL() or maybe in your case > GWT.getHostPageBaseURL() > > Chris > > On Mar 9, 3:29 am, San <[email protected]> wrote: > > > > > Hello, > > > I use Eclipse 3.5 (Galileo) and google plugin to develop my project. > > I'm having an issue while accessing static files from content root > > directory in runtime > > . > > > I have placed a xml file - packages.xml under war folder where my > > module index html file resides. I'm trying to get the xml file from > > the server in runtime and then need to do some parsing > > > RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, > > "packages.xml"); > > > But, I'm getting 404 when the above file is access in hosting mode, > > but works fine after compilation. When I use "/" prefixed to the xml > > file, like "/packages.xml" that works in hosting mode, but it will not > > work after compilation. What should I do make it work in hosting mode > > and after compilation?. Please advise me. Thanks
-- 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.
