借Struts
該ftl模板(error
<#
/*
* $Id: error
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements
* distributed with this work for additional information
* regarding copyright ownership
* to you under the Apache License
*
* with the License
*
*
*
* Unless required by applicable law or agreed to in writing
* software distributed under the License is distributed on an
*
* KIND
* specific language governing permissions and limitations
* under the License
*/
<html>
<head>
<title>Struts Problem Report</title>
<style>
pre {
margin:
padding:
}
</style>
</head>
<body>
<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
<#assign rootloc = ex
<#assign rootex = ex/>
<#else>
<#assign tmploc = locator
<#if (tmploc != unknown)>
<#assign rootloc = tmploc/>
<#assign rootex = ex/>
</#if>
</#if>
</#list>
<div id=
<table>
<tr>
<td><strong>Messages</strong>:</td>
<td>
<#if (msgs?size >
<ol>
<#list msgs as msg>
<#if (msg?is_method)>
<li>${msg[
<#else>
<li>${msg}</li>
</#if>
</#list>
</ol>
<#elseif (msgs?size ==
<#if (msgs[
<li>${msgs[
<#else>
<li>${msgs[
</#if>
</#if>
</td>
</tr>
<#if rootloc??>
<tr>
<td><strong>File</strong>:</td>
<td>${rootloc
</tr>
<tr>
<td><strong>Line number</strong>:</td>
<td>${rootloc
</tr>
<#if (lumnNumber >=
<tr>
<td><strong>Column number</strong>:</td>
<td>${lumnNumber}</td>
</tr>
</#if>
</#if>
</table>
</div>
<#if rootloc??>
<#assign snippet = rootloc
<#if (snippet?size >
<div id=
<hr />
<#list snippet as line>
<#if (line_index ==
<#if (lumnNumber >=
<pre >${(line[
<#else>
<pre >${line?html}</pre>
</#if>
<#else>
<pre>${line?html}</pre>
</#if>
</#list>
</div>
</#if>
</#if>
<div id=
<hr />
<h
<#list chain as ex>
<div class=
<strong>${ex}</strong>
<div>
<pre>
<#list ex
${frame}
</#list>
</pre>
</div>
</div>
</#list>
</div>
<div class=
<hr />
<p>
You are seeing this page because development mode is enabled
debugging behaviors and reports to assist developers
<pre>
struts
</pre>
in your <code>WEB
</p>
</div>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/hx/201311/25931.html