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...

How Struts will follow the MVC?

Answer Posted / krishnareddy

hi all,
->designpattern means it is the solution for the
reoccuring problem.
->The main aim of the MVC architecture is to separate
the business logic and application data from the
presentation data to the user.
->in model we can write our own code(like beans).
simply we can say that model is responsible for
managing the data.
->in view component we can write jsp code.
->controler is responsible for controling the application.
as part of controler we can write the servlet code.
use of mvc:-
1)suppose we write the code as part of controler to connect
to oracle database.
now i want to connect to another database like sybase.in
that particular swictuation i dont need to change model and
view components.what ever the code up to that controler
part only has been changed.
so that performance of the application automatically
increased.
there is the clean separation between the business logic
and presentation logic.
2) By using the MVC design pattern our
application becomes more expressive

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the future of struts?

937


What do you know about validation plugin ?

950


Difference between html tags and struts specific html tags

889


What is the use of web xml in struts2?

895


Describe validate() and reset() methods.

1071


What is struts2 namespace?

906


How to work with error tags?

939


What is struts actionmapping?

935


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

1021


What is struts 2 framework in java?

1030


How struts control data flow?

1091


Where should struts xml be placed?

908


What is spring hibernate and struts in java?

901


What are the conditions for actionform to work correctly?

1025


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2956