| Author |
mvc 2
|
rex tony
Ranch Hand
Joined: Aug 29, 2007
Posts: 159
|
|
|
Without struts Framework,Can we implement MVC2 with normal JSP,Servlet?
|
 |
Katrina Owen
Sheriff
Joined: Nov 03, 2006
Posts: 1334
|
|
The short answer is "yes". You don't need to implement a framework in order to use the model-view-controller approach. Here is an article written by one of the staff members about MVC: http://faq.javaranch.com/java/Model1Model2MVC My understanding is that you can create the 'model' in the form of Beans or regular (if there is such a thing) Java objects, put the View in your .jsp, then use the Servlet to orchestrate the whole thing, passing calls to the model, the model returns information, and that information can in turn be passed to the view.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56178
|
|
|
Of course. Frameworks like Struts and Spring and all the others (including my own Frontman) are all written using the normal JSP and Servlet mechanisms.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56178
|
|
|
P.S. There's no mvc 1 or 2, It's just MVC. You may be thinking of Model 2.
|
 |
 |
|
|
subject: mvc 2
|
|
|