Databases Reference
In-Depth Information
Model-View-Controller
Model-View-Controller is a popular architecture for applicaion development, that separates
business logic from client and control low logic. The core components of this patern are
as follows:
Model : This layer directs the data layer to respond to requests passed from the
UI layer. The model layer contains the core business logic of the applicaion.
View : In this layer, the user interacts with the applicaion and requests data to
be fetched. The acions performed in the UI layer by the user will command the
controller to request data from the model layer.
Controller : This layer controls the UI low and oten gets involved in the navigaion
from one page to another. The controller is also responsible for direcing the
requested data from the UI to the model layer.
The following diagram explains the Model-View-Controller architecture:
View
Controller
Model
DB
XML
WS
The data service layer can be anything from which the model layer gets the data. This can be
obtained using relaional data, XML data services, legacy applicaions, or through web services.
Enterprise JavaBeans (EJB) serves as the model layer,
servlet as the controller, and JSP as the view layer in a
typical JEE applicaion.
 
Search WWH ::




Custom Search