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]}
  • +