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


Please Help Members By Posting Answers For Below Questions

Which configuration file is used for storing jsp configuration information in struts?

546


Who wrote struts?

556


Give an example where struts tiles may be used?

557


What is apache struts cve 2017 5638?

550


What is struts2 framework?

516






What is meant by custom tags?

575


What is the purpose of redirect result type?

576


When should we use SwtichAction?

600


How can link tag’s action attribute be used?

524


How many servlet controllers are used in a Struts Application?

515


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

631


What are the core components of a struct2 based application?

564


Explain about logic match tag?

571


Provide some important Struts2 constants that you have used?

565


What is the use of token interceptor in Struts2?

622