Please Explain Differences in Detail MVC,MVC1, MVC2, Jsp Model1, JSP Model2, Model1, Model2


Hello All,

   From few days I am hearing few Desigh Patterns, Please can any one explain in detail.

   Here are those Design patterns, Please explain in detail

   Model1, Model2, MVC,MVC1, MVC2, Jsp Model1, JSP Model2,

Thanks in Advance
Naveen  

 
     
Naveen13Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kiranhkCommented:
Model 1 and Model 2
http://helponline.oracle.com/jdeveloper/help/state/content/navSetId.jdeveloper/navId.4/vtTopicFile.jdeveloper%7Cdeveloping_mvc_applications%7Cadf_aboutmvc2~html/

JSP Model 2
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html

(Taken from javafaq.nu)
You should use Model 1 only for simple applications and when you want to get something done quickly.
The main problem with Model 1 is that it is hard to maintain and change (luck of flexibility).
Model 1 architecture is best when the page navigation is simple and fixed, and when a simple directory structure can represent the structure of the pages in the application. Such applications usually embed the page flow information in the links between the pages. The presence of forward in a JSP page implies that logic embedded in the page is making a decision about the next page to display.

Model 2 is recommended for medium- and large-sized applications or applications that will grow in complexity in the future.
Over time, as the application grows and changes, page flow logic accumulates. The application becomes difficult to maintain because the page flow logic is distributed across multiple pages. The best time to switch from Model 1 to Model 2 is before this maintenance problem arises. This is why it's usually best to choose Model 2 from the outset, basing the application on an existing Web controller framework that best meets application requirements. Model 1 remains a viable option for simple, static applications.



MVC1 and MVC 2 (taken from www.theserverside.com)

MVC1 was a first generation approach that used JSP pages and the JavaBeans component architecture to implement the MVC architecture for the Web. HTTP requests are sent to a JSP page that implements Controller logic and calls out to the “Model” for data to update the “View.” This approach combines Controller and View functionality within a JSP page and therefore breaks the MVC paradigm. MVC1 is appropriate for simple development and prototyping. It is not, however, recommended for serious development.

MVC2 is a term invented by Sun to describe an MVC architecture for Web-based applications in which HTTP requests are passed from the client to a “Controller” servlet which updates the “Model” and then invokes the appropriate “View” renderer-for example, JSP technology, which in turn renders the View from the updated Model.
The hallmark of the MVC2 approach is the separation of Controller code from
content. (Implementations of presentation frameworks such as Struts, adhere to the MVC2 approach).

If you want to read a more detailed doc:
http://hk.sun.com/education/certification/sunone/files/chapter8.pdf 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TimYatesCommented:
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html

Covers JSP Model 1 and 2 and the differences..

Model 2 is a MVC (Model, View Controller) design pattern...

I have no idea what MVC1 or MVC2 are...
0
Naveen13Author Commented:

Thanks for ur Information,

But I need the differences

Thanks
Naveen
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

TimYatesCommented:
Did you look at that javaworld article we both posted?

kiranhk's comment should answer all your problems...you aren't really going to get a better answer than that...
0
TimYatesCommented:
JSP Model 1  == a JSP implementation of MVC 1
JSP Model 2 == a JSP implementation of MVC 2
0
kiranhkCommented:
there is no tabular format differences between these architectures. you can get all the differences from the links we posted and the brief explaination we have given.
0
kiranhkCommented:
did you find any of the suggestions useful?? havent heard from you for a long time
0
Naveen13Author Commented:

Yes, I refered so many sites and got the following information.

there is no MVC1, MVC2 arctictures officially.. see sun's,appache sites they will describe Model1 and Model2 architecture... they won't mention even the words MVC1, MVC2 in their sites..

so Model1 and Model2 both are MVC design patterns...

Model1 uses jsp as a view as well as controler.
Model2 uses jsp as a view and servlets as a controler.

Thanks
Naveen

0
kiranhkCommented:
thats the info what i posted already right???
0
kiranhkCommented:
can you close this question... its been more than 3 months...........
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.