Model View Controller Architecture Click here. Technologies like JSP encourage certain designs, but don't enforce them. For instance, all the code that might be put in a servlet or bean could be part of a single, certainly very confusing, JSP page. The JSP specification permits such designs. The adoption of a design pattern, however, implies certain design practices and choices.
Design patterns generalize the collective wisdom of other developers.
Developers capitalize on these lessons when they adhere to design patterns. If we use the MVC pattern, then the pattern implies that we should not mix presentation elements with control or data elements. We should limit the Java in our JSP page to communication with the control and data components. Download the code for entire issue. Download the code for this article, plus additional documentation for the code.