📄 include.jsp
字号:
<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<cms:include property="template" element="head" />
<div class="element">
<h1>Test for the use of <cms:include> with XML content</h1>
<p>This simple example demonstrates how to use the template tags from the <cms:> taglib to access XML content directly.
You must look at the page source code to understand this example fully.
</p><p>
Please note: You should use the new <cms:content...> tags, not the <cms:include> tag to
access the XML content elements. This example is just to prove it works.
</p>
</div>
<div class="element">
<h1><cms:include file="article_0001.html" element="Title" /></h1>
<p><small>By <cms:include file="article_0001.html" element="Author" /></small></p>
<p><i><cms:include file="article_0001.html" element="Teaser" /></i></p>
<p>
<cms:include file="article_0001.html" element="Text" />
</p>
</div>
<cms:include property="template" element="foot" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -