Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2006, 08:25 AM
Registered User
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Desing Pattern

I just want to know what is the difference between Front controller design pattern and Facade design pattern. I just can't understand the difference between the two.

M Kalyan Tilak
 
Old January 31st, 2006, 06:10 AM
Authorized User
 
Join Date: Jan 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to longjava
Default

Even they provide a similar idea, by providing a single point of entry, but they are different:

A Facade design pattern provides a simplified interface to a larger body of code, such as a Java class library. It can:
- make a software libary asier to use and understand, since the facade has convenient methods for common tasks.
- reduce dependencies of outside code on the inner workings of a library, since most code uses the facade, thus allowing more flexibility in developing the system.
- wrap a poorly designed collection of APIs with a single well-designed API.

A Front Controller design pattern is typically apply to the Web framework such as Struts, Webwork etc. It has two reponsibilities:
- Retrieving Parameters: The handler receives the HTTP Post or Get request from the Web server and retrieves relevant parameters from the request.
- Select Commands: The handler uses the parameters from the request first to choose the correct command and then to transfers control to the command for processing.

Hope this help

 
Old February 2nd, 2006, 04:01 AM
Registered User
 
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your kind response. The response is really good.

M Kalyan Tilak
 
Old February 14th, 2006, 07:04 AM
Registered User
 
Join Date: Feb 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello sir this is ram kishore(vrc).now i am in b'lore

k.ram kishore





Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Pattern How To muklee Javascript How-To 3 September 15th, 2006 09:11 AM
last directory pattern pc2006 BOOK: Beginning Regular Expressions 1 September 8th, 2006 12:45 AM
Database Desing surferdude Access 13 June 21st, 2006 12:29 PM
design pattern kishore.dyn Struts 1 February 14th, 2006 02:36 PM
DirectoryInfo.GetFiles(pattern): search pattern fo arif_1947 VS.NET 2002/2003 1 October 19th, 2004 11:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.