• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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....
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic