Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the main difference between Mvc1 and Mvc2 Architecture??

Answer Posted / baba

There is nothing like MVC1 or MVC2. Sun specification talks
about Model - 1 and Model - 2 architecture. MVC or Model -
View - Controller architecture is equivalent to the Model -
2 architecture. In MVC the central idea is separation of
business logic and presentation logic, which was a
shortcoming of the Model - 1. You cannot have complex
business logic in your JSP, thats bad practice. In Struts
the ActionServlet is based on the FrontController Design
pattern. Ideally in MVC there are JSP pages to handle the
presentation logic, the model to encapsulate business data
and manipulation logic and a controller to co-ordinate
between the view and model.

Is This Answer Correct ?    32 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the applications of struts?

898


Which components are available using actioncontext map?

1124


in struts how to use hibernate with struts>

2172


What is actionservlet?

946


What is token used for?

875


What are disadvantages of Struts?

966


State an example of struts configuration file as an action parameter for action servlet.

957


What is the front controller in struts2?

890


Which design pattern is implemented by Struts2 interceptors?

943


What is the purpose of @stringlengthfieldvalidator annotation?

1047


What is DynaActionForm?

991


How is token generated?

972


What are best practices to follow while developing Struts2 application?

968


What is difference between spring and struts?

880


What are the benefits of Struts framework?

953