Model 2 |
In the design of Java programming language Web applications, there are generally used two design models called Model 1 and Model 2. Model 1 is simpler and only recommended for small applications. Model 2 discussed here is recommended for medium- and large-sized applications. It is based on the Model-view-controller (MVC) design pattern (computer science) to separate presentation from content.
To understand this article, you should be familiar with the Java programming language in general, and in particular with Java servlets, JavaServer Pages (JSPs) and Java Beans.
In a Model 2 application, requests from the client (computing) web browser are passed to the controller which is a servlet. It decides which view (JSP) it will pass the request to. The view then invokes methods in a JavaBean (that may access a database) and returns the Response object to the Web container, which then passes it to the client application.
=External links=
|
|