Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2229

s:actionError tag ignores theme=simple

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 2.0.9
    • None
    • "New" API
    • None
    • Windows XP Professional + Apache Tomcat 5.5.20 Pentium 4 2.8 GHz 32 bits
      AND
      Kubuntu 7.04 + Apache Tomcat 5.5.23 Pentium D 2.8 GHz 32 bits

    • Important

    Description

      Trying to use the <s:actionError> tag, we've encountered problems to display only the error message. It wasn't possible to simply display the error message string, without html injection.

      Analyzing the struts-core package, we have found the following content inside the "actionerror.ftl":

      <#if (actionErrors?exists && actionErrors?size > 0)>
      <ul>
      <#list actionErrors as error>
      <li><span class="errorMessage">${error}</span></li>
      </#list>
      </ul>
      </#if>

      I don't know deeply the internals of the Struts 2 taglib API, but this seems to indicate that the <s:actionError> tag simply ignores the "theme" attribute, and always injects this template html.

      Please help us telling how we can manage to display only the error message string, without this html template.

      Thanks in advance.

      Attachments

        Activity

          People

            Unassigned Unassigned
            blpsilva Bruno Luiz Pereira da Silva
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: