Using an extended interceptor in struts2 does not work w/ action parameters

Posted by Ricardo on Stack Overflow See other posts from Stack Overflow or by Ricardo
Published on 2010-06-18T03:39:53Z Indexed on 2010/06/18 3:43 UTC
Read the original article Hit count: 296

Filed under:
|

I have a default package w/ an interceptor configure, and i'm extending that package into another one and calling the same interceptor

<action name="availability**">
            <param name="subTab">availability</param>
            <interceptor-ref name="tabStack"/>          
            <result>/WEB-INF/jsp/index.jsp?include=visibilit/availability.jsp</result>                      
        </action>

The problem is that the param is not being read inside my interceptor code:

Map params = invocation.getInvocationContext().getParameters();
subTab = params.get("subTab").toString(); //NULL exception

Any idea how i can pass parameters to extended interceptors?

Thanks!

© Stack Overflow or respective owner

Related posts about struts2

Related posts about interceptor