Author: mrdon
Date: Sat Jan 20 00:24:28 2007
New Revision: 498088

URL: http://svn.apache.org/viewvc?view=rev&rev=498088
Log:
Fixed problem in error report when error occurs deeper than action level
WW-1660

Modified:
    
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl

Modified: 
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl?view=diff&rev=498088&r1=498087&r2=498088
==============================================================================
--- 
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl
 (original)
+++ 
struts/struts2/trunk/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl
 Sat Jan 20 00:24:28 2007
@@ -42,11 +42,19 @@
             <#if (msgs?size > 1)>
             <ol>
                 <#list msgs as msg>
-                    <li>${msg}</li>
+                    <#if (msg?is_method)>
+                        <li>${msg[0]}</li>
+                    <#else>
+                        <li>${msg}</li>
+                    </#if>
                 </#list>
             </ol>
             <#elseif (msgs?size == 1)>
-                ${msgs[0]}
+                <#if (msg?is_method)>
+                    <li>${msgs[0][0]}</li>
+                <#else>
+                    <li>${msgs[0]}</li>
+                </#if>
             </#if>
         </td>
     </tr>


Reply via email to