Header Ads

ad

Why Spring MVC ?

Why should we go for Spring MVC ?

If we develop MVC2 architecture based web application directly using Servlet, JSP component without framework support then we are having following limitations :

>> All the logics of all layers must be develop explicitely by programmers manually which adds burden to the programmers.

>> Programmer must take care of Navigation management (Sending right request to right model component)

>> Programmer must take care of view management (Sending right result to right view component).

>> Programmer should make sure to follow MVC2 Principles implementation.

>> Navigation and View management should perform throught java code. So, flexibility of modification will be missed.


So, to overcome above problem, use web application framework to develop MVC2 based web applications 

e.g:- Spring MVC--->Interface21
        JSF----->From Sun Ms/Oracle Corporation
        ADF----> From Oracle Corporation
        Struts-->From Apache


 Benefits of developing web application using web application framework

a) Since Controller Servlet is built-in servlet. So, we need not to take care of controller/integration logics. We just need to take care of view and model components logics. It reduces burden of the programmer.

b)Navigation and View management will be taken care by framework having fixed flow of execution.

c) Most of the MVC2 principles will be implemented automatically because of fixed flow.

d) We can control and configure the resources for View and Navigation management throught xml files. It gives flexibiligy for modification.


Spring MVC  Important Terminologies|Keyword

System Services

The services which are mandatory and that should be applied on every request are called System services.
e.g:- Security, logging etc.

Request Wrapping

It is the process of reading form data from request and writing that to java class/java bean class object to send to other component.

Form Submission/Request Mapping

It is all about taking request from different view components like hyperlinks, forms, javascript events and etc. and mapping them to different components for processing.

Form Validation

It is the process of validating the format and pattern of form data.

Form Handling

Displaying form page with old values along with error message when validating errors are raised in form page is called form handling.








No comments