Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

interceptor not working in struts 2  RSS feed

 
vivek mahajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to have a session interceptor to monitor session, so i have created it as :


and i have configured the interceptor in struts.xml as below :


but the sop of interceptor in not getting printed on server output, even i tried to debug the interceptor but it is not being called. please help.

Thanks in advance
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should work there is no problem in configuration.
 
vivek mahajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But still it is not working
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make your user defined interceptor stack as default interceptor stack using default-interceptor-ref = "yourinterceptorstackname"

And all the interceptors will be instantiated at startup time by the server observe what's going to happen to your interceptor. (To do this put your log leve in debug)
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!