Upsss... sorry for double posting, I thought my first post was not received by list...
On Aug 5, 4:20 pm, Ezequiel Block <[email protected]> wrote: > Hi list, > > I'm retrieving an html page from server using RequestBuilder and > showing it inside a HTMLPanel, this works ok, but relative url paths > like IMG src="./images/some.jpg" defined in html file wont work. the > path definition in html file is ok from the point of view of html file > location, but not from current browser url. > > For example, given the following scenario > > directory structure > > WEB-INF > gwtmodule > html > page.html > images > somepic.jpg > hostpage.html > > page.html contains > ... > IMG src="./images/somepic.jpg" > ... > > browser url points tohttp://localhost:8888/hostpage.html > > Retrieving page.html would give the following > [WARN] 404 - GET /images/somepic.jpg (127.0.0.1) 1417 bytes > > I know how to locate the html file by means of > GWT.getModuleBaseURL() / GWT.getHostPageBaseURL() + path, but I think > there isn't a a nice way to solve this, except from putting all > retrieved pages and required folders in war root folder. > > any idea? -- 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.
