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

Tags fail with NPE in sitemesh decorators, using legacy filters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4
    • Plugin - SiteMesh
    • None

    Description

      Steps to reproduce:

      1. Change Showcase' filters to the legacy filters:
      <filter>
      <filter-name>struts-cleanup</filter-name>
      <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
      </filter>

      <filter>
      <filter-name>struts</filter-name>
      <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
      <init-param>
      <param-name>actionPackages</param-name>
      <param-value>org.apache.struts2.showcase.person</param-value>
      </init-param>
      </filter>

      <filter>
      <filter-name>sitemesh</filter-name>
      <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
      </filter>

      <filter-mapping>
      <filter-name>struts-cleanup</filter-name>
      <url-pattern>/*</url-pattern>
      </filter-mapping>

      <filter-mapping>
      <filter-name>sitemesh</filter-name>
      <url-pattern>/*</url-pattern>
      </filter-mapping>

      <filter-mapping>
      <filter-name>struts</filter-name>
      <url-pattern>/*</url-pattern>
      </filter-mapping>

      2. Add this to main.jsp
      <s:hidden name="somename" value="%

      {'aaa'}

      " />

      3. Open any showcase page

      Attachments

        Activity

          People

            Unassigned Unassigned
            musachy Musachy Barroso
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: