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

in struts without integrate hibernate how to use directly explain?

1 Answers   HCL,


What are the core classes of struts framework? Explain

0 Answers  


What is spring and struts in java?

0 Answers  


What is actionservlet?

0 Answers  


What is xml based validation in struts2?

0 Answers  






what are java stuts? what are there uses

2 Answers   Rupa, Tech Mahindra,


What is http forward?

0 Answers  


Define struts?

0 Answers  


How do you know what to give for the "path " under in struts-config.xml ?

1 Answers  


what is tiles in struts?

6 Answers  


What is java struts?

0 Answers  


advantages& 5 disadvantages of MVC architecture

6 Answers   Satyam, TCS,


Categories