Re: Referring to static files in .jar root directly from HTML, with context added automatically?

2013-01-19 Thread Joachim Schrod
Ondrej Zizka wrote: > Hi all, > > I'm wondering if I can refer to static files just from HTML, while > keeping it aware of the context. > > Example: > > .jar contains /favicon.ico . > I'd like to refer to it by . > But when the app is at non-root context, this breaks as it still > points to htt

Referring to static files in .jar root directly from HTML, with context added automatically?

2013-01-17 Thread Ondrej Zizka
Hi all, I'm wondering if I can refer to static files just from HTML, while keeping it aware of the context. Example: .jar contains /favicon.ico . I'd like to refer to it by . But when the app is at non-root context, this breaks as it still points to http://host/favicon.ico . So it needs s