| Author |
FilterDispatcher and ActionServlet
|
palas das
Greenhorn
Joined: May 09, 2007
Posts: 9
|
|
|
What is the difference between FilterDispatcher and ActionServlet?
|
 |
sarada bokka
Ranch Hand
Joined: Jan 13, 2010
Posts: 72
|
|
|
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
Joined: Jan 24, 2010
Posts: 57
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9089
|
|
|
"The LuckyMe" please check your private messages for some administrative matter...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Ravi Sree
Ranch Hand
Joined: Jan 24, 2010
Posts: 57
|
|
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....
|
 |
 |
|
|
subject: FilterDispatcher and ActionServlet
|
|
|