aspose file tools*
The moose likes Struts and the fly likes Difference between RequestProcessor(Struts1) and Interceptors(struts2)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Difference between RequestProcessor(Struts1) and Interceptors(struts2)?" Watch "Difference between RequestProcessor(Struts1) and Interceptors(struts2)?" New topic
Author

Difference between RequestProcessor(Struts1) and Interceptors(struts2)?

Nagaraj Shivaklara
Ranch Hand

Joined: Dec 16, 2008
Posts: 78
Hi,

Can you please let me know the major differences between them? is both perform the same?

Thanks
Nagaraj


Thanks n Regards,
Nagaraj S K
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

No. An interceptor in Struts 2 makes it possible to call code before an Action is invoked. See here.
The class in Struts 2 that has the same function as RequestProcessor is org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


[How To Ask Questions On JavaRanch]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Santhosh Kalisamy,
Your post was moved to a new topic.
 
Don't get me started about those stupid light bulbs.
 
subject: Difference between RequestProcessor(Struts1) and Interceptors(struts2)?