Just put your xml file in a folder under your war directory, like war/ data/blah.xml, then in your RequestBuilder use a path like "data/ blah.xml". Don't use a slash before the path. You really don't need server side code for this.
Brad On Apr 8, 5:30 pm, andrew19881123 <[email protected]> wrote: > mmm.. it's strange.. neither if i make an HTTP GET request with a > RequestBuilder like this? > > RequestBuilder xmlFile = new RequestBuilder(RequestBuilder.GET, "/ > blabla.xml"); > > try { > xmlFile.sendRequest(null, new RequestCallback() { > public void onError(Request request, > Throwable exception) { > requestFailed(exception); > } > public void onResponseReceived(Request > request, Response response) > { > parseXML(response.getText()); > } > }); > } catch (RequestException ex) { > requestFailed(ex); > } > > On Apr 8, 10:42 pm, Katharina Probst <[email protected]> wrote: > > > Well, your app won't just be able to access the file system on the client > > side, because the browser runs in a sandbox (you wouldn't want any web app > > reading your files from your desktop...). But you *could* have the user > > upload a file, if that's what you want? > > Seehttp://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... > > . > > > kathrin > > -- > 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 > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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.
