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 difference between model1 and model2
architecture in struts?

Answers were Sorted based on User's Feedback



what is the difference between model1 and model2 architecture in struts? ..

Answer / mahalakshmi

in model 1 jsp can handle busnesslogic and view also.
in model 2 it sus only for view purpose and busnesslogic
hanlde by controller

Is This Answer Correct ?    8 Yes 1 No

what is the difference between model1 and model2 architecture in struts? ..

Answer / jaikant

in model 1 ,either Servlets or JSP handles all the
responsibilities for request.like processing the
data,validating the data, handling the business and data
access logic.

model 1 can be use when your application is small.

application can't have multiple interfaces(or views) for
same business logic.

Model 2 breaks your application in three parts
i)Controller: performs request processing,data validation
and works as controller between model and view.so there is
no direct interaction between model and view.

ii)model: it is core of the application.it is house of
business logic and data access code.model defines what
application does.we can subdivide model in 2 sub layer(data
access layer and business logic layer).

iii)view:it is place where presentation code reside.it is
the place for getting input and displaying data that is
generated by model layer.

Is This Answer Correct ?    4 Yes 0 No

what is the difference between model1 and model2 architecture in struts? ..

Answer / abdul hannan

In Model-1, every request is handled by separate controller
class, but in Model-2 every request is handled by a common
controller class like in Struts 'ActionServlet' class.

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Struts Interview Questions

What is the purpose of @results annotation?

0 Answers  


Can we have multiple struts-config files in a single web app? If yes why should we have them? Will multiple copies make any impact on performance?

2 Answers   Accenture,


How can duplicate form submission be handled in struts 2?

0 Answers  


how can you switch onemodule to another module by switch action class plz explain with exapmle?

1 Answers   Atos Origin, HeadStrong, Satyam,


How does struts2 token work?

0 Answers  


How long do struts last?

0 Answers  


How can we group related actions in one group in Struts?

0 Answers  


what r the disadvantages of MVC-2 Architecture?

2 Answers   Process IT,


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

0 Answers  


What is the use of forwardaction?

0 Answers  


Wat is Difference between Mvc1 architecture and Mvc2 Architecture?

21 Answers   HCL, IBM, Sanyaa Infotech,


How to add ms-word file in struts at the same time how to add images

1 Answers  


Categories