Model 2
Encyclopedia : M : MO : MOD : Model 2
- This article is about the Java design model. For the arcade board, see Sega Model 2.
Model 1 is simpler and only recommended for small applications. Model 2 is recommended for medium- and large-sized applications. It uses the Model-View-Controller (MVC) design pattern to separate presentation from content.
In a Model 2 application, requests from the client browser are passed to the controller, which is a servlet. The controller decides which view (JSP) it will pass the request to. The view then invokes methods in a JavaBean (which may access a database) and returns the Response object to the Web container, which is then passed on to the client browser.
External links
- [Understanding JavaServer Pages Model 2 architecture by Govind Seshadri (JavaWorld)]
- [Almost All Java Web Apps Need Model 2 by Budi Kurniawan (JavaPro)]
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
