• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

FilterDispatcher and ActionServlet

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the difference between FilterDispatcher and ActionServlet?
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 64
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"The LuckyMe" please check your private messages for some administrative matter...
 
Ravi Sree
Ranch Hand
Posts: 64
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
reply
    Bookmark Topic Watch Topic
  • New Topic