Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
9 user(s) are online (8 user(s) are browsing encyclopedia)

Members: 0
Guests: 9

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

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=

  • [http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html Understanding JavaServer Pages Model 2 architecture by Govind Seshadri (JavaWorld)]
  • [http://www.fawcette.com/javapro/2002_06/online/servlets_06_11_02/ Almost All Java Web Apps Need Model 2 by Budi Kurniawan (JavaPro)]