Using an extended interceptor in struts2 does not work w/ action parameters
- by Ricardo
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!