Ask the Expert

Violation of MVC

Could you give an example of a real-world scenario where the MVC is violated and could you explain how the violation takes place? Can you suggest what quality(ies) of a system are sacrificed in this case?

    Requires Free Membership to View

MVC is violated anytime the application control-flow and/or the model or view/presentation is coupled into the same components/objects. This is most often seen in J2EE Web applications when servlets are used to handle control flow (client requests), but they also are used to access databases and create the markup (HTML) for the responses.

When MVC is violated, tight-couplings within the source code prevent the system from being distributed or scaled easily. It also makes upgrades to the system much more difficult, because the system is not divided into easily replaceable modules.

This was first published in December 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: