SpringMVC is a part of Spring framework which makes possible client-server communication using Spring framework. It has many components which takes part in finding the request, delegating the request coming from client to the mapped class for request processing and many more. Below is the name of few important and very frequent used components are involved in SpringMVC architecture :



1. Dispatcher Servlet (Front Controller)
2. Handler Mapping
3. View Resolver 



Dispatcher Servlet : It is the first component which takes part in delegating the incoming request from clients to other component. It is designed using "front controller design pattern".  Every request from client to server passes through this servlet only that why it is designed using the front controller design pattern. 

Handler Mapping: It is one of the component used for finding the resource and exactly the method responsible for request processing after dispatcher servlet takes the incoming request. Dispatcher servlet takes the URL from the incoming request and delegates the URL to the handler mapping.
It search for the exact method mapped with that URL and return it to the Dispatcher servlet.

View Resolver: View is also one of the component which is used to complete the path of the resource to be displayed after complete request processing. InternalViewResolver is the default one used by the Spring framework.

Below is the image of the Layer structure of java web application :


In the above diagram you can see SpringMVC persists into controller layer and this layer is dedicated for request processing.





Spring is a framework and currently grabbed market of development. Spring is otherwise called as all in one framework just because with the help of Spring only one can develop entire web application. It has "HibernateTemplate" class which gives the functionality to interact with database without any other framework or technology like "Hibernate" or "JDBC" respectively. SpringMVC makes independent of relying on any other framework which persists on Controller layer for client and server communication. 

SpringMVC stands for Spring Model View and Controller. SpringMVC is designed using front controller design pattern. Dispacter Servlet i.e DS is acting as a front controller who is responsible for handing and delegating all the incoming requests from clients. This is only servlet stands before all the classes developed for handing and processing the incoming request. 

Ads 468x60px

.

Ads

.

Featured Posts

Popular Posts

Like Us On FaceBook

Total Pageviews

Online Members

Live Traffic