Wat is Difference between Mvc1 architecture and Mvc2
Architecture?
Answer Posted / b.sivaramakrishnan
MVC1 Architecture has a Model part as (classes,Bean classes
connectivity of Database), View part as jsp pages,and here
only one controller Servlet is used .here we send request
form browser by jsp page it goes to servlet(controller)
servlet get information from the request acording to request
it fatch information form classes(Models) and give responce
to the view part( to the Jsp Page).
In MVC2 Architecture we use Struts FrameWork which is a Open
Source FrameWork.Here Browser send Http Request to the
ActionServlet that Reads StrutsConfig.XML (these two play
role of Controller) then it goes to Model part acording to
request by Browser. Here in Action part we have DataBase,
ActionForm(Basicly Beans or EJB) and that give a response to
View Part As Jsp Page to the Browser.
| Is This Answer Correct ? | 22 Yes | 10 No |
Post New Answer View All Answers
how to get the last 10 elements using logic:iterate in struts with hiernate from database.
What are action errors?
What is the role of action class?
What is the purpose of form-beans tag in struct-config.xml?
What is defeult result type?
Name some useful annotations introduced in Struts2?
What is package name in struts xml?
What is the configuration files used in struts?
What is the role of action class in struts?
What is role of action class?
What is action support class in struts2?
Can we handle exceptions in Struts programmatically?
Why is it called struts?
What is the purpose of @expressionvalidator annotation?
Explain how can we upload files in struts2 application?