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 is dispatch action class?

605


What do you know about validation plugin ?

512


What configuration changes are required to use resource files in Struts?

566


What is the difference between requestaware and servletrequestaware interface?

578


How to build struts application in eclipse?

524






What is strut action mapping?

511


What is the purpose of @result annotation?

622


How the flow of various requests happens in struts application?

530


What's the purpose of execute method of action class?

526


What is actioninvocation?

538


How many action classes can be used in struts application?

508


Which class of struts is responsible to converts data types from string and vice versa?

658


What is struts2 framework?

512


What is container struts2?

527


Describe the two types of formbeans.

573