cancel
Showing results for 
Search instead for 
Did you mean: 

what is MVC advantage?

Former Member
0 Kudos

what is MVC advantage?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rafi,

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate

Please look at this Threat [Adv MVC|http://publib.boulder.ibm.com/infocenter/adiehelp/v5r1m1/index.jsp?topic=/com.ibm.etools.struts.doc/topics/cstrdoc020.html]

[How MVC works|http://articles.techrepublic.com.com/5100-10878_11-1049862.html]

Regards

Vijay Kalluri

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Raffi,

The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller). In event-driven systems, the model notifies observers (usually views) when the information changes so that they can react.

The view renders the model into a form suitable for interaction, typically a user interface element. Multiple views can exist for a single model for different purposes. A viewport typically has a one to one correspondence with a display surface and knows how to render to it.

The controller receives input and initiates a response by making calls on model objects. A controller accepts input from the user and instructs the model and viewport to perform actions based on that input.

The goal of MVC is, by decoupling models and views, to reduce the complexity in architectural design and to increase flexibility and maintainability of code.

Cheers!!!

Umang

former_member185879
Active Contributor
0 Kudos

Hello Raffi,

MVC - Model View Controller Architecture.

What is the advantage, it is always easy to identify where my business logic and view design is.

i.e., Model will contain only the business Logic, View will contain only the UI design, Controller will contain the code to get the value from UI and send it to Model.

http://help.sap.com/saphelp_nw04/helpdata/en/b2/cc393cddb05357e10000000a114084/content.htm

SEARCH BEFORE POSTING IN SDN

Regards

Nizamudeen SM