This section describes the template types available.
Keep in mind that for template types of HTML/XSL, it is possible to get the template processor to invoke a JSP to generate the template content. For example, assume you have an XSL template; you have these three choices for defining the template body:
Simply insert XSL content into the template body.
Indicate a path to a JSP—such as /portlets/jsp/custom/some.jsp—that generates XSL, into the template body
Make sure the template body starts with <%
,
and then the template body is executed as a JSP that generates XSL.
In this case the template body is the JSP content.
This pattern is also available for HTML templates. This means that you can get the template body output generated via a JSP, either by pointing at a JSP or by including the JSP content directly into the template body. See “Adding JSP-related capabilities” for more information about incorporating JSP code.