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

RequestProcessor vs ActionServlet

 
siva kumar
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the differences bw RequestProcessor and ActionServlet.

The advantages of RequestProcessor over ActionServlet.
 
Aneesha Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by siva kumar:
What are the differences bw RequestProcessor and ActionServlet.

The advantages of RequestProcessor over ActionServlet.


Well, I think, the answer is in the extensible behaviour. You can have the same ActionServlet and inherit the RequestProcessor in your own class to modify the behaviour to what your application requires.
I think thats the reason for separating teh functionality of RequestProcessor and ActionServlet.
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

As mentioned above its true that RequestProcessor is extensibility over actionservlet while in struts 1.0 it was only actionservlet later in 1.1 many fuctions in actionservlte are moved to requestprocessor and they had provided some comcept ofmodules and each module will have one Request Processor ......................

The big advantage of this is that u can override a few methods of request priocessor for a particular module only
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic