⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 include.jsp

📁 cms是开源的框架
💻 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 &lt;cms:include&gt; with XML content</h1>

<p>This simple example demonstrates how to use the template tags from the &lt;cms:&gt; 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 &lt;cms:content...&gt; tags, not the &lt;cms:include&gt; 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 + -