• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

interceptor not working in struts 2

 
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
 
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)
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic