• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FilterDispatcher and ActionServlet

 
palas das
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between FilterDispatcher and ActionServlet?
 
sarada bokka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The controller in Struts1.x is the ActionServlet which is a Front Controller, which does not give the guarantee for trapping the response but the controller should trap both the request and response thus Struts2.x uses FilterDispatcher which is a predefined Filter so there is a guarantee of trapping the response also.
 
Ravi Sree
Ranch Hand
Posts: 64
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sarada bokka wrote:The controller in Struts1.x is the ActionServlet which is a Front Controller, which does not give the guarantee for trapping the response but the controller should trap both the request and response thus Struts2.x uses FilterDispatcher which is a predefined Filter so there is a guarantee of trapping the response also.


Hi there,
i have just started working on struts...
you said the controller should trap both the request and response....
can you please eloborate more on this part...?
thanks in advance
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"The LuckyMe" please check your private messages for some administrative matter...
 
Ravi Sree
Ranch Hand
Posts: 64
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucky Sree wrote:
sarada bokka wrote:The controller in Struts1.x is the ActionServlet which is a Front Controller, which does not give the guarantee for trapping the response but the controller should trap both the request and response thus Struts2.x uses FilterDispatcher which is a predefined Filter so there is a guarantee of trapping the response also.


Hi there,
i have just started working on struts...
you said the controller should trap both the request and response....
can you please eloborate more on this part...?
thanks in advance


Hi again,
It will be very helpful if you could please elaborate more on this topic.....
Thanks....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic