Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我的 JSF 页面中有以下内容:
<ui:include src="/WEB-INF/templates/footer.xhtml"></ui:include>
如果这更改为从非 webapp 路径加载的静态内容 - 是否可以将 my 更改ui:include为文件系统上的绝对路径?
ui:include
假设:
在 mac(例如)上,路径如下所示:
<ui:include src="file:///Users/Julian/Documents/.../WEB-INF/templates/footer.xhtml" />
在 Windows 上,路径如下所示:
<ui:include src="file:///C:/Users/.../footer.xhtml" />