The error is you applied @InterceptorRef("seoFilter")
to the action class and as you should know by convention it's applied to all actions in the class. Remove this and if you want to add a custom interceptor to the action use the @Action
annotation.
@Action(value="/{search1}/{param1}/", results={
@Result(name=ACTION_SUCCESS,location="classic.main.general", type="tiles")},
interceptorRefs={@InterceptorRef("seoFilter"),@InterceptorRef("defaultStack")
})
Assumed that seoFilter
is a valid interceptor that will not break the stack.
This is the code for a valid interceptor
public String intercept(ActionInvocation invocation) throws Exception {
// here you can place the code that used to intercept the action
...
//finally
return invocation.invoke();
}
As you didn't post the struts.xml
and I cannot see how did you configure Struts to use with wildcard mappings I will provide you a reference for advanced wildcards from the documentation page to do it yourself.