just i want to know What is the actual difference between MVC and MVC Model2 in the development
A:
Artyom Sokolov
2009-04-28 06:50:16
A:
A good explaination can be found at http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
VolkerK
2009-04-28 06:50:49
Thanx for give gooooooood ans, i have to satisfied form ur answer
Ashvin Ranpariya
2009-04-28 11:26:11
@Ashvin You are welcome
VonC
2009-04-28 12:06:00
@VonC - Its not a good idea to copy without giving a reference. Please provide the reference in your original post. Thanks.
Adeel Ansari
2009-04-29 01:51:01
@Vinegar: it is not a good idea to comment without reading the answer ;) "and add explanation from **this article**": what is copied come from that article mentioned in the FIRST line.
VonC
2009-04-29 03:52:58
So does that mean that MVC1 would be the event-driven MVC that you find in Swing and in the traditional Smalltalk GUI? (MVC2 doesn't need the observer because it's answering a web request whereas Swing and Smalltalk are both handling a desktop client... so they need callbacks on the model to trigger view refreshes)
cartoonfox
2009-11-08 18:23:34
+1
A:
An amusing historical note on the terms...
[I wish I could find the paper... (I just tried googling but no luck!)]
A while back, someone wrote a paper describing two MVC approaches for web applications. In it, he had two figures.
The captions were "model 1" and "model 2".
They weren't intended as actual names of patterns (more like "figure 1" and "figure 2"), but someone read it and wrote about it as though that were a pattern name...
(anyone have the ref?)
VonC describes the difference pretty well
Scott Stanchfield
2009-04-28 15:00:07
Interesting (+1). I merely copy and reformat and javaworld article, actually. Regarding your comment, this presentation ( http://www.javapassion.com/j2ee/MVCPatternAndFrameworks.pdf ) does mention "MVC model 1" and "MVC model 2"! (but that may be a by-product of your paper, and not the actual document you are refering to though)
VonC
2009-04-28 17:53:32
Arf, in this "answer sheet" ( http://csdl.ics.hawaii.edu/~johnson/613s05/613s05FinalAnswerKey.pdf ), MVC Model “1” is oriented toward client-side applications, such as a Swing-based GUIapplication. In this case all of the application code exists in a single JVM on a single client.MVC Model “2” is oriented toward a client-server web application context, in which the user is issuing HTTPrequests to a server. In contrast to Model 1, the Model 2 architecture requires the implementation of asingle servlet which acts as the Controller and receives all requests from the client-side browsers.
VonC
2009-04-28 18:10:45
That slide presentation is close, but it calls out Model 1/Model 2 as though they are actual terms... "Model 2" isn't really an evolutionary step as they say; it's just a different implementation of model/UI separation.
Scott Stanchfield
2009-04-28 20:11:48
@VonC - Its not a good idea to copy without giving a reference. Please provide the reference in your original post. Thanks.
Adeel Ansari
2009-04-29 01:50:14
@Vinegar: I always provide the reference of what I put in my answers. Check out the first line of my post.
VonC
2009-04-29 03:57:04
(although I admit it was not the "javaworld" article I did copy like I mentioned incorrectly in the first comment of Scott's answer, but the *faq.javaranch* one: that is the one referenced in the first line of my post)
VonC
2009-04-29 04:18:04