We are using Struts2 StrutsPrepareAndExecuteFilter
. The configuration in web.xml
is:
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
<init-param>
<param-name>struts.devMode</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
We need to implement authentication/permission inside this common interceptor.
What will be the easy way for it? Can we create a customized interceptor which extends StrutsPrepareAndExecuteFilter
and do our implementation inside that?