• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Frameworks are Model 2?

 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
What does 'Model 2' imply with respect to frameworks?
Can anyone give me a reference to some litterature
describing the concept of Model 2?
Thank you,
Gian Franco Casula
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
As per my best of knowledge, MVC (Model 2) is a pattern and implementation of a pattern is known as a frame work.
Eg one such implementation for MVC is structs
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gian Franco Casula:
Hi there,
What does 'Model 2' imply with respect to frameworks?
Can anyone give me a reference to some litterature
describing the concept of Model 2?
Thank you,
Gian Franco Casula


Here is a simple explanation of Model 1 vs. Model 2 architectures. When JSP was first introduced by Sun, the specs discussed two approaches for building web apps using JSP. In Model 1, the JSPs controlled the flow of the application. Model 2 presented the idea of a central servlet that processed all requests and presented the appropriate JSP to continue the flow of the application. Essentially the Model 2 approach described the Model-View-Controller (MVC) pattern.
Struts as a framework supports the Model 2 (MVC). Struts provides the Controller, JSP provides the View, and the Model is provided by EJB or a direct link into JDBC.
For more reading and to get up to speed quickly on Struts, I recommend O'Reilly's "Programming Jakarta Struts" (which has on it's cover a picture of a horse "Strut"ting across the page). Of course the real meaning of the name Struts is that it provides the foundation for building your application, but it is a cute play on words nonetheless.
Hope I helped.
Michael
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Gunjan and Michael,
I'll get hold of the book.
Greetings,
Gian Franco
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic