Front Controller Design pattern in java/jsp applications

Front Controller is one of the most important design pattern mostly used in web applications.

The problem:-

As you know in a webapplication, whenever clients send the request to the server, server process the request, if possible make a database call, get the data from the Database or other third party systems and process the data, and send the response. Here there are different components involved,business data validation,holding the database data(model) and view process. Because of this process, there is a lack of single point of contact for the request. Front Control design pattern is introduce. In This Servlet act as a controller sitting infront of other resources. In this patter, all the request that send by different resoures like browser, mobile client as well as Standalone apps is handled by this servlet and delegate the request to approriate web resources. It is the entry point for the request sent by browser.

ActionServlet is the front controller for Struts based applications DispatchServlet is the front controller for spring web mvc based applications

1 comment:

  1. Cool. Does it work better than other front controller?

    Greets web design packages consultant


Note: only a member of this blog may post a comment.