Pages

Tuesday, February 1, 2011

web programmers most powerful weapon

The MVC(Model View Controller) Pattern
Today the most of the existing web frameworks that exist since web 2.0 support separation of concerns by using variations of the MVC pattern. It is an architectural pattern used to isolate business logic from user interface.


Model: The model is represented by the content(often stored in a DB) and it is displayed by the view.
It should be created without concern of its look and feel.
Examples: Entities that use ORM technologies, other backup classes that are included in the domain model, EJB calls...

View:The view are all the parts of the application that the user sees. We could say that it is the model presented graphically.
Examples: XHTML, WML and others...

Controller:The controller is the part that recives the infromation from the View about the desires of the user. The controller gets, converts, validates the data, invokes bussiness logic and generates the markup for the view to display.

In the image below you can see how each part should interact.

3 comments:

  1. This is a good answer to Oracle Application Development Framework Essentials Exam Topic XII, item 1:
    Describe the Model-View-Controller design pattern.
    Thank you!

    ReplyDelete
  2. I really agree with Cristina and auther as well, This is the greatest weapon for proggramers but it is usually used in Oracle Application Development. Nice post , Thanks !
    Maryland Software Development- Walisystems, Inc.

    ReplyDelete

Share with your friends