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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between dispatchaction and lookupdispatchaction in struts?

6350


What is the purpose of @requiredstringvalidator annotation?

932


What do you mean by tiles in struts?

1032


What is the purpose of @after annotation?

1024


What are different Struts2 tags? How can we use them?

942


What is difference between interceptors and filters?

1028


What is front controller in struts2?

1078


Which model components are supported by Struts?

1020


Where can I get help with struts?

996


What is the procedure of operation of a form tag?

955


If the framework doesn’t do what I want, can I request that a feature be added?

948


How the exceptions are handled in struts?

992


What is ValueStack and OGNL?

1050


What is spring hibernate and struts in java?

909


Why do the struts tags provide for so little formatting?

967