<#--
/*
* $id$
*
* licensed to the apache software 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 2.0 (the
* "license"); you may not use this file except in compliance
* with the license. you may obtain a copy of the license at
*
* http://www.apache.org/licenses/license-2.0
*
* unless required by applicable law or agreed to in writing,
* software 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.
*/
-->
<#if fielderrors??><#t/>
<#assign ekeys = fielderrors.keyset()><#t/>
<#assign ekeyssize = ekeys.size()><#t/>
<#assign donestartultag=false><#t/>
<#assign doneendultag=false><#t/>
<#assign havematchederrorfield=false><#t/>
<#if (fielderrorfieldnames?size > 0) ><#t/>
<#list fielderrorfieldnames as fielderrorfieldname><#t/>
<#list ekeys as ekey><#t/>
<#if (ekey = fielderrorfieldname)><#t/>
<#assign havematchederrorfield=true><#t/>
<#assign evalue = fielderrors[fielderrorfieldname]><#t/>
<#if (havematchederrorfield && (!donestartultag))><#t/>
<ul<#rt/>
<#if parameters.id?has_content>
id="${parameters.id?html}"<#rt/>
</#if>
<#if parameters.cssclass?has_content>
class="${parameters.cssclass?html}"<#rt/>
<#else>
class="errormessage"<#rt/>
</#if>
<#if parameters.cssstyle?has_content>
style="${parameters.cssstyle?html}"<#rt/>
</#if>
>
<#assign donestartultag=true><#t/>
</#if><#t/>
<#list evalue as eeachvalue><#t/>
<li><span><#if parameters.escape>${eeachvalue!?html}<#else>${eeachvalue!}</#if></span></li>
</#list><#t/>
</#if><#t/>
</#list><#t/>
</#list><#t/>
<#if (havematchederrorfield && (!doneendultag))><#t/>
</ul>
<#assign doneendultag=true><#t/>
</#if><#t/>
<#else><#t/>
<#if (ekeyssize > 0)><#t/>
<ul<#rt/>
<#if parameters.cssclass?has_content>
class="${parameters.cssclass?html}"<#rt/>
<#else>
class="errormessage"<#rt/>
</#if>
<#if parameters.cssstyle?has_content>
style="${parameters.cssstyle?html}"<#rt/>
</#if>
>
<#list ekeys as ekey><#t/>
<#assign evalue = fielderrors[ekey]><#t/>
<#list evalue as eeachvalue><#t/>
<li><span><#if parameters.escape>${eeachvalue!?html}<#else>${eeachvalue!}</#if></span></li>
</#list><#t/>
</#list><#t/>
</ul>
</#if><#t/>
</#if><#t/>
</#if><#t/>
将<ul></ul>、<li></li>、<span></span>删除
修改后文件如下
<#--
/*
* $id$
*
* licensed to the apache software 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 2.0 (the
* "license"); you may not use this file except in compliance
* with the license. you may obtain a copy of the license at
*
* http://www.apache.org/licenses/license-2.0
*
* unless required by applicable law or agreed to in writing,
* software 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.
*/
-->
<#if fielderrors??><#t/>
<#assign ekeys = fielderrors.keyset()><#t/>
<#assign ekeyssize = ekeys.size()><#t/>
<#assign donestartultag=false><#t/>
<#assign doneendultag=false><#t/>
<#assign havematchederrorfield=false><#t/>
<#if (fielderrorfieldnames?size > 0) ><#t/>
<#list fielderrorfieldnames as fielderrorfieldname><#t/>
<#list ekeys as ekey><#t/>
<#if (ekey = fielderrorfieldname)><#t/>
<#assign havematchederrorfield=true><#t/>
<#assign evalue = fielderrors[fielderrorfieldname]><#t/>
<#if (havematchederrorfield && (!donestartultag))><#t/>
<#assign donestartultag=true><#t/>
</#if><#t/>
<#list evalue as eeachvalue><#t/>
<#if parameters.escape>${eeachvalue!?html}<#else>${eeachvalue!}</#if>
</#list><#t/>
</#if><#t/>
</#list><#t/>
</#list><#t/>
<#if (havematchederrorfield && (!doneendultag))><#t/>
<#assign doneendultag=true><#t/>
</#if><#t/>
<#else><#t/>
<#if (ekeyssize > 0)><#t/>
<#list ekeys as ekey><#t/>
<#assign evalue = fielderrors[ekey]><#t/>
<#list evalue as eeachvalue><#t/>
<#if parameters.escape>${eeachvalue!?html}<#else>${eeachvalue!}</#if>
</#list><#t/>
</#list><#t/>
</#if><#t/>
</#if><#t/>
</#if><#t/>