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

Plugin Disables the Ability to mix jsp and freemarker decorators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3, 2.1.4, 6.1.1
    • 2.2.1
    • Plugin - SiteMesh
    • None

    Description

      If one looks at the sitemesh example application, an application can have both Freemarker and JSP decorators.

      In the sitemesh plugin filter aka --->
      <filter>
      <filter-name>sitemesh</filter-name>
      <filter-class>
      org.apache.struts2.sitemesh.FreeMarkerPageFilter
      </filter-class>
      </filter>
      The logic blinding thinks that all decorators in decorators.xml are freemarker templates.

      This would make a configuration such as below impossible --->
      <decorator name="velocity" page="velocity.vm">
      <pattern>/velocity.html</pattern>
      </decorator>

      <decorator name="freemarker" page="freemarker.ftl">
      <pattern>/freemarker.html</pattern>
      </decorator>

      <decorator name="test" page="test.jsp">
      <pattern>/agent.jsp</pattern>
      </decorator>

      I would like to also note.
      The related issues https://issues.apache.org/struts/browse/WW-1744
      and https://issues.apache.org/struts/browse/WW-2246
      Further cripple flexibility.

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              sutter2k Matthew Payne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: