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

What do you mean by actionform?

585


Explain how can we upload files in struts2 application?

623


How can we display validation errors on jsp page?

539


What is s token?

541


Why do the struts tags provide for so little formatting?

589






How tag libraries are defined in Struts?

576


Explain about struts relation to html tags?

556


Explain about the tag?

633


Explain the core end goal while using java struts?

528


Are struts thread safe?

560


Does apache struts run on windows?

538


What is actionform in struts?

488


Why actionservlet is singleton in struts?

598


What is struts and springs in java?

536


Which tag is used to declare constants in struts xml?

476