| [jetty-users] skipping the leading slash of a context |
I am new to jetty.
I am trying to organize my webapps and at the same time reuse _javascript_ files that are common between these apps.
I have a WebAppContext that I point to a folder "C:/FolderABC" and assign a context path "/ABC”.
I have a _javascript_ file "xyz.js" in unrelated folder "D:\folder1\libXYZ".
Can a HTML from the "ABC" context reference JS files from my another folder (D:\folder1\libXYZ) by specifying:
<script type="text/_javascript_" src="">
Note that I don't have "/" in front of "lib" in the "src" attribute.
If I create another WebAppContext with context "/lib/one" and change the HTML file to "src="" it works, but I am looking to see if can leave the "src" attribute without the leading slash.
Basically I am trying to work around a tool limitation
and see if I can leave the tool generated line "lib/one/xyz.js" and
find a solution on the web server side instead.
Thanks in advance
Dobrin