|
|
Re: Browser.setUrl(Str) does not work with local files [message #525310 is a reply to message #525013] |
Tue, 06 April 2010 07:56 |
|
Hi,
file URLs do not work for a good reason. A website is not allowed to
access resources from the client's file system. If you're trying to
access a file on the server, you need to make it available via HTTP, as
Stefan suggested.
Best regards, Ralf
Farooq Kamal wrote:
> On contrary to SWT, Browser.setUrl(Str) does not work with local file
> URLS (file:///C... ). I need to display a html file generated by jasper
> reports but the browser does not seem to accept the file:/// url. I have
> tried all options (e.g. without file: , with \\ etc) and checked all the
> security issues. The method returns true even if i specify a wrong path.
> The result is always a blank / nothing page.
>
> I added a location listener which correctly passes the url in the event.
>
> Any ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.04690 seconds