You can apply specific interceptor stack for the action using interceptorRef
annotations.
For ex. Put the below annotation above the method for which you want to apply
paramsPrepareParamsStack stack,
@Action(value="action1",
interceptorRefs=@InterceptorRef("paramsPrepareParamsStack "))
For more details refer to
http://struts.apache.org/2.2.3/docs/convention-plugin.html#ConventionPlugin-InterceptorRefannotation
-----Original Message-----
From: Shinobi [mailto:[email protected]]
Sent: 23 March 2012 19:34
To: [email protected]
Subject: Convention plugin: How do I have two methods on the same action using
2 different Interceptor stacks
I am using struts 2.3.1.2
I have an action class called Students with 2 methods, list and save.
Using the convention plugin and bang notation, I want the interceptor stack
'basicStack' to fire for method list and the interceptor stack
'paramsPrepareParamsStack' to fire for save.
Is this possible please?
--
View this message in context:
http://struts.1045723.n5.nabble.com/Convention-plugin-How-do-I-have-two-methods-on-the-same-action-using-2-different-Interceptor-stacks-tp5589550p5589550.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]