try

GWT.getModuleBaseURL()

(with the usual caveats that you can't use java.io etc for reading
files)

//A

On 4 Sep, 15:38, "alex.d" <[EMAIL PROTECTED]> wrote:
> Following issue:
> I need to read a file from my public folder. The problem: the path in
> hosted mode(while developing) is different from the one after the app.
> is deployed. I tried it with:
> getServletContext().getRealPath()
> but it didn't work either.
>
> Is there any reliable way to get the path to public-folder?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to