From 4cf46d99a981530c965a1dfdb46ed09198240151 Mon Sep 17 00:00:00 2001 From: "Donald J. Brown" Date: Sat, 20 Jan 2007 08:24:28 +0000 Subject: [PATCH] Fixed problem in error report when error occurs deeper than action level WW-1660 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@498088 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/struts2/dispatcher/error.ftl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl b/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl index 58049e81d..66b027436 100644 --- a/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl +++ b/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl @@ -42,11 +42,19 @@ <#if (msgs?size > 1)>
    <#list msgs as msg> -
  1. ${msg}
  2. + <#if (msg?is_method)> +
  3. ${msg[0]}
  4. + <#else> +
  5. ${msg}
  6. +
<#elseif (msgs?size == 1)> - ${msgs[0]} + <#if (msg?is_method)> +
  • ${msgs[0][0]}
  • + <#else> +
  • ${msgs[0]}
  • +