It is possible to exclude interceptor for given action?
is possible to exclude interceptor for given action?
What do you want to do basically?? I'm not sure if I understood what you are trying to do with that action of yours. Which interceptors do you want to get invoked and which not??
Ankit Garg wrote:I know of two ways to do what you want.
1. Define a new interceptor stack in your action declaration i.e. a list of all interceptors except the session interceptor.
2. Exclude all methods of that action in your session interceptor like follows
<action name="login" method="validateLogin" class="struts.common.LoginAction">
If there's a better way of doing this, then I don't know of it...
Jayaraj Jaganathan wrote:i like the second option. the above configuration is not working.
Which above configuration?? Is this session interceptor your custom interceptor?? I cannot find it in the list of interceptors here or in my book...