WebView's default location for local resources

I did a bunch of searching but have not been able to see where the default path location is for WebView when resources, such as images, css or html files, are specified locally.
In other words, if I specify a <img src="pic.png"/>, where does the resolution to the pic.png occur assuming that the html was loaded using loadContent("...html page as a string...").
I have a number of local web pages to display with customized content and I need to specify many different local resources, images, javascript and stylesheets. The topmost web page is loaded as a classpath resource, converted into a string then loaded using WebEngine.loadContent. The location property is blank in this case.

Well, I really need this to work, so I pushed on. It seems that there is no good way to anchor the "location" if you load WebEngine using loadContent. So I went ahead and experimented with an URL handler. Since my application does not use any other components that set the URL handler factory, I set my own and created a classpath URL handler. If you use OSGi there are nicer ways to set this, but the code below worked for me. I now load the WebEngine using load instead of loadContent.
The scala URL handler code which is not very exciting is here.

Similar Messages

Maybe you are looking for

  • Delivery document is still open even already invoiced

    Good day! Could anyone help me on this? Here is the scenario: A new delivery document was created based in sales order. The delivery undergoes to approval procedure and then approved. Upon posting of the delivery doc and after past few days, sales re

  • HT4059 I have ipod software version 4.2.1, but the iBooks app won't load onto my ipod touch 8GB. Why?

    As it says, the iBooks app refuses to load, even though my iOS version should be high enough. Any suggestions?

  • IPod Service Question - Experience?

    Dear Discussion, I have recently sent my iPod in for servicing after the HDD begain to fail. My iPod has odviously had a few adventures. The case has slightly opened on one side, nothing to severe (I have never opened the iPod). There are a few scrat

  • Laptop keeps turning off (T500)

    I have a Lenovo T500 with 6GB RAM,  320GB HDD and an intel T9600 @ 2.8 GHZ. I installed Windows a few weeks ago and haven't used the laptop. Upon turning it on, when I logged in, it said there was a startup error. So, I restarted, did startup repair,

  • Video Playback Freezes After 25-30 minutes

    Hey everyone, I've recently run into a problem with my iphone. Any videos I watch freeze after about 25-30 minutes of viewing. Basically, it'll pause without my doing anything, then I'll be able to hit play again, at which point it'll play for anothe