%
// Create a CmsJspActionElement
com.opencms.flex.jsp.CmsJspActionElement cms = new com.opencms.flex.jsp.CmsJspActionElement(pageContext, request, response);
// Check for the template
String template = cms.property("template", "search") + ".jsp";
// Insert the template head
cms.include(template, "head");
out.println("template_frame.jsp - head element:
[["); cms.include("template_frame.jsp", "head"); out.println("]]"); out.println("
This is content from the main test page, surrounded by head and foot elements.
"); out.println("template_frame.jsp - foot element:[["); cms.include("template_frame.jsp", "foot"); out.println("]]"); // Insert the template foot cms.include(template, "foot"); %>