What is Front Controller design pattern?

Showing Answers 1 - 4 of 4 Answers

lingareddy

  • 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)

vikram

  • 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

  Was this answer useful?  Yes

SuprajaYKM

  • Mar 8th, 2007
 

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

sapna

  • 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

Give your answer:

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

Answer Question

Click here to Login / Register your free account


 
Send   Reset

 

Related Answered Questions

 

Related Open Questions