*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Front Controller, Intercepting Filter,... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Front Controller, Intercepting Filter,..." Watch "Front Controller, Intercepting Filter,..." New topic
Author

Front Controller, Intercepting Filter,...

roul ravashimka
Ranch Hand

Joined: Mar 16, 2004
Posts: 53
Hello,
When I search on javaranch for Front Controller or Intercepting Filter, I don't find anything.
Althought there's a lot to find about Struts, session facade, business delegate, service locator and DOA.

It seems that a front controller or an intercepting filter is never used.
What do you think about those patterns, doesn't they have any value to offer?
Best Regards,
Roul


MSc Electronics, ICT
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Isn't Struts' ActionServlet an implementation of the Front Controller pattern?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
roul ravashimka
Ranch Hand

Joined: Mar 16, 2004
Posts: 53
Hi,
I totally agree, an ActionServlet is a front controller: the front controller is used as a part of MVC.
What about intercepting filter, contect object, application controller, Service to worker, dispatcher to view?
I believe they are less used.
I think the presentation tier is mainly build with MVC, composite view, rather then with an interception filer,...
Am I correct on this?
Best Regards,
roul
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Probably yes (these patterns are stuff that one doesn't really need when using MVC webapp frameworks such as Struts or WebWork).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Front Controller, Intercepting Filter,...
 
Similar Threads
Reg Front Controller Pattern...
front contoller and intercepting filter
HFSJ Mock Qn on Front Controller
SCWCD Head First Servlets & JSP - design patterns
Standard Tags, Design Pattern Qs