Take the 2-minute tour ×

Suppose I have the following in my JSF page:

<ui:include src="/WEB-INF/templates/footer.xhtml"></ui:include>

If this is changing to be static content loading from a non-webapp path - is is possible to change my ui:include to an absolute path on the file system?


  • Mojarra 2.0
  • Java 7.0
  • Tomcat 7.0
share|improve this question
add comment

1 Answer

On a mac (for example) the path look like this:

<ui:include src="file:///Users/Julian/Documents/.../WEB-INF/templates/footer.xhtml" />

On Windows the path looks like this:

<ui:include src="file:///C:/Users/.../footer.xhtml" />
share|improve this answer
add comment

Your Answer


