Source code for: /alkacon-documentation/documentation_scriptlet/test_method_template.jsp
<%
org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
String propertyTemplate = cms.property("template", "search");
String propertyTemplateTest = cms.property("template_test", "this");
cms.include( propertyTemplate, "head" );
%>
<h2>Inclusion of the template element "head":</h2>
<% cms.include(propertyTemplateTest, "head"); %>
<h2>Inclusion of the template element "foot":</h2>
<% cms.include(propertyTemplateTest, "foot"); %>
<p> </p>
<p> </p>
<p>Now used together to create a template structure:</p>
<h2>A complete template:</h2>
<% cms.include(propertyTemplateTest); %>
<%
cms.include( propertyTemplate, "foot" );
%>
|