wood burning stoves 2.0*
The moose likes Struts and the fly likes Custom Interceptor or Chain Interceptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Custom Interceptor or Chain Interceptor" Watch "Custom Interceptor or Chain Interceptor" New topic
Author

Custom Interceptor or Chain Interceptor

Shahzad Masud
Greenhorn

Joined: Oct 18, 2007
Posts: 11
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

Joined: Sep 11, 2008
Posts: 5
Can't you put the information in the session or request attribute so you can pull out the information anywhere you want?


boo!
 
GeeCON Prague 2014
 
subject: Custom Interceptor or Chain Interceptor