Tags fail with NPE in sitemesh decorators, using legacy filters
---------------------------------------------------------------

                 Key: WW-2937
                 URL: https://issues.apache.org/struts/browse/WW-2937
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - SiteMesh
    Affects Versions: 2.1.3
            Reporter: Musachy Barroso
            Priority: Blocker
             Fix For: 2.1.4


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to