<< Back - Alkacon logo

OpenCms 6.0 interactive documentation:

link to /system/modules/com.alkacon.documentation/elements/showsource.jsp

OpenCms logo - Forward >>

Source code for: /alkacon-documentation/examples_flex_2/template_test.html


<%
// Create a CmsJspActionElement
org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);

// Check for the template
String template = cms.property("template", "search");

// Insert the template head 
cms.include(template, "head"); 

out.println("template_frame.jsp - head element:<br><blockquote>[[");
cms.include("template_frame.jsp", "head");
out.println("]]</blockquote>");

out.println("<h2>Inclusion test page</h2>");
out.println("<p>This is content from the main test page, surrounded by head and foot elements.</p>");

out.println("template_frame.jsp - foot element:<br><blockquote>[[");
cms.include("template_frame.jsp", "foot");
out.println("]]</blockquote>");

// Insert the template foot
cms.include(template, "foot"); 
%>

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