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.

Example

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

  
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
 
<html>
  <body>
  
    <f:view>
      <h:form>
        <r:template template="alfresco/templates/userhome_docs.ftl" />
      </h:form>
    </f:view>
  
  </body>
</html>
  

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.