In my tomcat I have defined two context.
One is my application URL, which is
http://localhost:8080/mysite/faces/abc.xhtml
another one is used to put all my static files which maybe used by other applications.
http://localhost:8080/files/myfile.html
In my application .xhtml file I want to include page from the other context, for example
<ui:include src="/files/myfile.html">
But I always get error
javax.faces.view.facelets.TagAttributeException:.....Invalid path : /files/myfile.html
It looks like ui:include is not appropriate to be used here because it only looks for context related path. What should I use then?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…