Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Interceptor or Chain Interceptor

 
Shahzad Masud
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem, and i have resolved it in a way using Struts 2. But I am looking for a better solution.

I have a security profile based authorization / authentication, for which I am using an interceptor for authentication. But for authorization, I have to use another interceptor. There are some places where both or either of the information needs to be interceptor is required. For that reason, I have created another interceptor (with combination) and put all the items in that. I am looking for a more sophisticated solution. Similar to Filters concept in Servlets.

Any thoughts?
 
Scotty Boy Sinclair
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you put the information in the session or request attribute so you can pull out the information anywhere you want?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic