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
Can you explain aware interfaces in struts2?
What is the significance of logic tags in Struts?
Does Struts2 action and interceptors are thread safe?
What is the purpose of @before?
What is the purpose of @after?
Can we have multiple struts config files in a single web app?
What is the default location of result pages and how can we change it?
Can you explain struts validator framework?
Why do we need struts?
How can link tag’s action attribute be used?
Can a reducer dispatch an action?
What does i18n interceptor?
List the important attribute and elements of action mapping under struts.
What is the purpose of @element?
What is controller in struts2?