Front Controller Pattern
A Front Controller Pattern says that if you want to provide the centralized request handling mechanism so that all the requests will be handled by a single handler". This handler can do the authentication or authorization or logging or tracking of request and then pass the requests to corresponding handlers.
UML for Front Controller Pattern:
Implementation of Front Controller Pattern:
Create a Login.html web page.
Create a FrontControllerServlet.java class which is a servlet and it may be a JSP page also.
Create a Success.jsp page.
Create a Error.jsp page.
Create a web.xml file.