Header Ads

ad

Spring MVC Introduction

Spring MVC Introduction

>> Spring MVC is used to develop MVC based web application.

>> Spring MVC is not a framework, it is just one of the modules of Spring framework.

>> Spring framework is an open source Java platform. It was initially written by Rod Johnson and was first released under the Apache 2.0 license in June 2003.

Different logics of web application development

a) Request data gathering logic

Reading multiple details from client generated request like form data, request header values, misc information and etc..

b) Form validation logic

Checking format and pattern of the form data.

c) Business/Service/Request processing logic

The main logic of the web application to process the request and to generate the result.

d) Presentation logic

Provides user interface to end user to supply inputs and to view outputs.

e) Persistence logic

The logics that interacts with Database to perform CRUD operations.

f) Session Management logic

The logic that remembers client data across the multiple requests during the session..Hidden form field, Http cookies, Http session..

g) Middleware services/Aspects

The additional logics that are optional and configurable are called middleware services.

e.g:- Security, Logging, Transaction management and etc.

Java web application development model

Model-1 Architecture


model-1 architecture

>> Every main web component contains the mixture of multiple logics without having clean separation.

>> It is not layered application development.

>> We use either Servlet or JSP as main web component i.e if servlet component is used, JSP will not be used and vice-versa

>> It is suitable for small scale web application.

Disadvantages of Model-1 Architecture

>> No clean separation between logics.

>> The modification done in one logic can affect other logics

>> The maintenance & enhancement of project is complex and error prone

>> Parallel development is not possible, So productivity is poor

>> Not suitable for medium & large scale application

>> Certain middleware services must be implemented by programmers explicitly which impose burden on the programmers
















No comments