<< Back - Alkacon logo

OpenCms 6.0 interactive documentation:

Show source

OpenCms logo - Forward >>

Source code for: /alkacon-documentation/documentation_scriptlet/test_method_include1.jsp


<%
org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
String propertyTemplate = cms.property("template", "search");

cms.include( propertyTemplate, "head" );
%>

<h2>Inclusion test using include()</h2>

This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.

<blockquote>

((test_method_property.jsp[[<% cms.include("test_method_property.jsp"); %>]]test_method_property.jsp))

</blockquote>

<p>
(*) The value of this property is read from the file 'test_tag_property.jsp' in this example,
since the file is a separately included sub-element with it's own properties.


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

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