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
in struts how to use hibernate with struts>
Can explain about the validations and in your project where did u used the validations?
What are the important methods of actionform?
Are struts thread safe?
What is the difference between shocks and struts?
What are the bundled validators?
What are the benefits of Interceptors in Struts2?
How you will make available any message resources definitions file to the struts framework environment?
What is pojo in struts2?
What is Struts2?
How is the action mapping specified?
Which model components are supported by Struts?
What's the purpose of execute method of action class?
Can we have multiple struts config files in a single web app?
How does interceptor work in struts2?