aspose file tools*
The moose likes Struts and the fly likes FilterDispatcher and ActionServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "FilterDispatcher and ActionServlet" Watch "FilterDispatcher and ActionServlet" New topic
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: 80
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: 64

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

Joined: Aug 03, 2008
Posts: 9313
    
  17

"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: 64

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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FilterDispatcher and ActionServlet