<< Back - Alkacon logo

OpenCms 6.0 interactive documentation:

Show source

OpenCms logo - Forward >>

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>&nbsp;</p>
<p>&nbsp;</p>
<p>Now used together to create a template structure:</p>

<h2>A complete template:</h2>

<% cms.include(propertyTemplateTest); %>

<%
cms.include( propertyTemplate, "foot" );
%>

©2005 Alkacon Software GmbH (http://www.alkacon.com) - The OpenCms experts