This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt on choosing the appropriate design pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt on choosing the appropriate design pattern" Watch "doubt on choosing the appropriate design pattern" New topic
Author

doubt on choosing the appropriate design pattern

muthu kumaran
Ranch Hand

Joined: Oct 26, 2004
Posts: 56
I found this question in a mock

A web application that handles all aspects of credit card transactions requires a component that would receive the requests and dispatch them to appropriate JSP pages. It should manage the workflow and co-ordinate sequential processing.Centralized control of use cases is prefered . Which design pattern would be best suited to address these concerns ? ( one choice)

1) MVC
2) Business Delegate
3)Front Controller
4)Value Object
5)Facade

I would go for Option C (i.e ) FrontController but MVC also pops up in my mind.

Which one is the appropriate pattern for this case ?

Thanks
Muthu
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

My guess is MVC. Front Controller should rarely dispatch to JSPs, aside from perhaps error pages. And none of the others options could dispatch to JSPs.


A good workman is known by his tools.
muthu kumaran
Ranch Hand

Joined: Oct 26, 2004
Posts: 56
Thanks Marc
 
Don't get me started about those stupid light bulbs.
 
subject: doubt on choosing the appropriate design pattern