知识大全 freemaker的标记语法
Posted 语法
篇首语:采得百花成蜜后,为谁辛苦为谁甜。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 freemaker的标记语法相关的知识,希望对你有一定的参考价值。
借Struts 核心jar包下的Filter包的error ftl文件来学习一下freemaker的标记语法
该ftl模板(error ftl)用于指示开发者Struts页面请求出错后 指定转向该模板所生成的静态页面
<#
/*
* $Id: error ftl : : Z musachy $
*
* Licensed to the Apache Sofare Foundation (ASF) under one
* or more contributor license agreements See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership The ASF licenses this file
* to you under the Apache License Version (the
* License ) you may not use this file except in pliance
* with the License You may obtain a copy of the License at
*
*
*
* Unless required by applicable law or agreed to in writing
* sofare distributed under the License is distributed on an
* AS IS BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND either express or implied See the License for the
* specific language governing permissions and limitations
* under the License
*/
>
<>
<head>
<title>Struts Problem Report</title>
<style>
pre
margin: ;
padding: ;
</style>
</head>
<body>
<h >Struts Problem Report</h >
<p>
Struts has detected an unhandled exception:
</p>
<#assign msgs = [] />
<#list chain as ex>
<#if ssage??>
<#assign msgs = [ssage] + msgs/>
</#if>
</#list>
<#assign rootex = exception/>
<#list chain as ex>
<#if (ex location?? && (ex location != unknown))>
<#assign rootloc = ex location/>
<#assign rootex = ex/>
<#else>
<#assign tmploc = locator getLocation(ex) />
<#if (tmploc != unknown)>
<#assign rootloc = tmploc/>
<#assign rootex = ex/>
</#if>
</#if>
</#list>
<div id= exception info >
<table>
<tr>
<td><strong>Messages</strong>:</td>
<td>
<#if (msgs?size > )>
<ol>
<#list msgs as msg>
<#if (msg?is_method)>
<li>$msg[ ]</li>
<#else>
<li>$msg</li>
</#if>
</#list>
</ol>
<#elseif (msgs?size == )>
<#if (msgs[ ]?is_method)>
<li>$msgs[ ][ ]</li>
<#else>
<li>$msgs[ ]</li>
</#if>
</#if>
</td>
</tr>
<#if rootloc??>
<tr>
<td><strong>File</strong>:</td>
<td>$rootloc URI</td>
</tr>
<tr>
<td><strong>Line number</strong>:</td>
<td>$rootloc lineNumber</td>
</tr>
<#if (lumnNumber >= )>
<tr>
<td><strong>Column number</strong>:</td>
<td>$lumnNumber</td>
</tr>
</#if>
</#if>
</table>
</div>
<#if rootloc??>
<#assign snippet = rootloc getSnippet( ) />
<#if (snippet?size > )>
<div id= snippet >
<hr />
<#list snippet as line>
<#if (line_index == )>
<#if (lumnNumber >= )>
<pre >$(line[ (lumnNumber )]?)<span >$(line[(lumnNumber )]?)</span><#if ((lumnNumber)<line length())>$(line[(lumnNumber )]?)</#if></pre>
<#else>
<pre >$line?</pre>
</#if>
<#else>
<pre>$line?</pre>
</#if>
</#list>
</div>
</#if>
</#if>
<div id= stacktraces >
<hr />
<h >Stacktraces</h >
<#list chain as ex>
<div class= stacktrace >
<strong>$ex</strong>
<div>
<pre>
<#list ex stackTrace as frame>
$frame
</#list>
</pre>
</div>
</div>
</#list>
</div>
<div class= footer >
<hr />
<p>
You are seeing this page because development mode is enabled Development mode or devMode enables extra
debugging behaviors and reports to assist developers To disable this mode set:
<pre>
struts devMode=false
</pre>
in your <code>WEB INF/classes/struts properties</code> file
</p>
</div>
</body>
cha138/Article/program/Java/hx/201311/25931相关参考
strip_tags 去掉HTML及PHP的标记语法:stringstrip_tags(stringstr);传回值:字串函式种类:资料处理内容说明本函式可去掉字串中包含的任何HTML及PHP的
怎么学好英语单词和语法。学英语语法切记不可盲目!如果你把语文的语法学通了,要学英语语法那是轻而易举的。而你只是一心要学好英语语法,却不注重将之融会贯通,那你就会越学越觉得烦、难,进而对学习英语语法、英
学了谢孟媛的语法还要学新概念英语的语法吗我认为结合学比较好。谢孟媛文法要听细,学透。特别要学习她的做题方法哦,顶呱呱滴。新概念的就拿来多读吧,有助于提高口语。语法不是学得越多就越好,是要学得扎实、深刻
XPath语法 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! XPath的语法 &nb
知识大全 我们现在学习的英语语法是外国人发明的,还是中国人总结
我们现在学习的英语语法是外国人发明的,还是中国人总结外国人也是人。中国人学语法,外国人怎么可能不学语法呢?中国人也不是所有人都学语法。外国人也不是所有人都学语法。语法是语言的规律,语言的规则。凡是语言
XML入门基础:XML的语法规则 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!提纲一XML语法规则
语法填空急!61.memories;62.actually;63.which;64.after;65.havegained;66.toachieve;67.solution;68.betreated;
PHP5.3闭包语法初探 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! PHP将加入闭包语法也就
要学好英语是学语法重要还是培养语感重要?都重要。语法是学好英语的基础,它是掌握英语的工具。在你掌握了一定的词汇量后,了解一些语法知识是非常必要的。建立初步的语感,获得初步运用英语的能力,为真实交际打下
Java语法规则 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! //多态 定义是指一个多态