You are here

JSP Page

Custom JSP pages can be written to render templates.

As well as the commonly used Web script-based mechanisms for rendering template output, developers can write custom JSP pages with JSF components that render templates.


Following is the minimum JSP code required to display a template using the JSF Template component:

<%@ taglib uri="" prefix="h" %>
<%@ taglib uri="" prefix="f" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
        <r:template template="alfresco/templates/userhome_docs.ftl" />