I'm working on a GWT application and previously I was simply reading and writing to the file "data.xml", which worked fine at that point. However now I want to have the file available publicly (i.e. by replacing mymodule.html with data.xml in the URL), and I'm now having difficulty with reading/writing the file whilst using the hosted mode browser.
I achieved making the file public by adding the file to my Eclipse project under the public directory and then adding <public path="public/" /> to my module.gwt.xml file, so now I can change the URL in the hosted mode browser and view the contents of the file. Now, however, I would also like to read and write the same file that is public. I tried using getServletContext().getRealPath("data.xml") but the returned path doesn't exist. Any ideas? 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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---