GeekInterview.com
Series: Subject: Topic:
Question: 18 of 21

what is Front Controller design pattern?

Asked by: Interview Candidate | Asked on: Oct 23rd, 2006
Showing Answers 1 - 4 of 4 Answers
lingareddy

Answered On : Nov 7th, 2006

A data to the servlet can be pass from outside either in the form of requset parameter(client side),init-parameter(web.xml file and serverside).ActionServlet also get the addional information from out side like name of hte struts-configuration file,name of the properties file and etc in the form init-parameter."ActionServlet canbe use directmatch or extesionmatch to make that servlet as FrontController".

<url-pattrern>*.do</url-pattrern>(extesion match)

<url-pattern>/A/B/*</url-pattern>(directory match)

Yes  1 User has rated as useful.
  
Login to rate this answer.
vikram

Answered On : Nov 9th, 2006

The controller translates interactions with the view into actions to be performed by the model. In a stand-alone GUI client, user interactions could be button clicks or menu selections, whereas in a Web application, they appear as GET and POST HTTP requests. The actions performed by the model include activating business processes or changing the state of the model. Based on the user interactions and the outcome of the model actions, the controller responds by selecting an appropriate view

  
Login to rate this answer.
SuprajaYKM

Answered On : Mar 8th, 2007

View all answers by SuprajaYKM

Use a controller as the initial point of contact for handling a request. The controller manages the handling of the request, including invoking security services such as authentication and authorization, delegating business processing, managing the choice of an appropriate view, handling errors, and managing the selection of content creation strategies.

 Benefits:

 Centralizes Control.
 Improve Managebility
 Improves Reusability

Yes  1 User has rated as useful.
  
Login to rate this answer.
sapna

Answered On : Sep 5th, 2007

Many interactive Web applications are composed of brittle collections of interdependent Web pages. Such applications can be hard to maintain and extend.


The Front Controller pattern defines a single component that is responsible for processing application requests. A front controller centralizes functions such as view selection, security, and templating, and applies them consistently across all pages or views. Consequently, when the behavior of these functions need to change, only a small part of the application needs to be changed: the controller and its helper classes

Yes  1 User has rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.