This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Difference between RequestProcessor(Struts1) and Interceptors(struts2)? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 72
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: 8290

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8290

Santhosh Kalisamy,
Your post was moved to a new topic.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Difference between RequestProcessor(Struts1) and Interceptors(struts2)?
 
Similar Threads
82 years old Chen Ning Yang is to marry 28 years old Fan Wen
Game on SQL
your favorite English female name
fountain/waterfall that draws pictures
Zachman Certification