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
What do you mean by inner class and anonymous class?
Which class is the Front Controller in Struts2?
What is the purpose of struct-config.xml in struct2?
How do you convert struts to springs?
What is the purpose of form-be tag in struct-config.xml?
How duplicate form submission can be controlled in struts?
How action mapping is configured in Struts?
How to use dispatchaction?
Which components are available using actioncontext map?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the purpose of @keyproperty annotation annotation?
Name some of the features of struts2?
What are the important methods of actionform?
What are the differences between http direct and http indirect?
What is the purpose of @key annotation annotation?