Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nagaraj Shivaklara
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
Nagaraj
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Santhosh Kalisamy,
Your post was moved to a new topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic