毕业论文

打赏
当前位置: 毕业论文 > 外文文献翻译 >

MVC设计模式和Spring,Struts框架英文文献和中文翻译(2)

时间:2019-09-15 14:29来源:毕业论文
II. APPLYING ARCHITECTURE WITH MULTIPLE FRAMEWORKS Web and Internet is ever growing area and the demands for the applications are growing. A single framework is not capable to handle the architecture


II. APPLYING ARCHITECTURE WITH MULTIPLE FRAMEWORKS
Web and Internet is ever growing area and the demands for the applications are growing. A single framework is not capable to handle the architecture of the application. To meet the currents requirement of the applications it’s necessary to design a architecture to implement the frameworks. Struts framework have been designed and developed for the front end control of the web applications. It provides the various features for the applications that interact to the users. It also follows the MVC 2 design features. Spring Framework is the designed to handle the various tasks. The spring work for the desktop and internet based applications also. It follows the principals of the MVC 2. The simultaneous use of the Struts and spring frameworks in the single application with the applying the MVC Design principals so that we can Improve the performance of the Applications. Struts Framework consists of three major blocks, Described in brief as follows. First is The View Block which controls the presentation part of the complete model. This contains following JSP files which you write for your specific application Second Block is representing the Controller. This is for navigation the complete application. This contains XML configuration files; it contains the tags for the navigation of the paths. Third Block is the Model. This part do the work of the Business Logic, Fetching and storing data to the database
MVC in Struts
The major three parts of the MVC are as follows in the spring framework. Servlet controller (Controller Part) Java Server Pages or any other presentation technology (View Part) Application Business Logic: in the form of whatever suits the application (Model Part).
Spring Components.
In the spring we also follows the principals of the MVC . Spring consist of three core collaborating components.
1. Controller: Handles navigation logic and interacts with the Service tier for business logic
2. Model: The contract between the Controller and the View Contains the data needed to render the View Populated by the Controller
3. View: Renders the response to the request Pulls data from the model.
Core components in the spring MVC are as follows.
1.DispatcherServlet: Spring’s Front Controller implementation. It is the first controller which interacts to the requests. We can also say it is an implementation of the Servlet. It controls the complete flow of the application.
2. Controller: User created component for handling requests encapsulates navigation logic delegates to the service objects for business logic.
3. View: Responsible for rendering output. Different views can be selected for the different types of output bases on the results and the viewing device, communication devices.
4. ModelAndView: ModelAndView is the core part of the spring framework. It implements the business logic of the application. It is controlled by the controller. It stores the business logic and the view associated with it. Whenever it is executed it will the data with the name of the view.
5. ViewResolver: How the output is to be displayed depends on the result received from ModelAndView. It is used to map logical view names to actual view implementations. This part identifies and implement what is the output media and how to display it.
6. HandlerMapping: Strategy interface used by DispatcherServlet for mapping incoming requests to inpidual Controllers. It identifies the request and calls the respective handler to provide the services. In this the dispatcher Servlet is the entry point for the application. The Struts parts do it’s work and send the request to the dispatcher Servlet. The Servlet decides the handler. Then it will call to the controller. Controller will execute the ModelAndView.
III. PROPOSED METHODOLOGY
This approach is based a combination of applying the two framework struts and spring for the application development. The sequence diagram for the combined application is explained as above, which is the main driving force for the application. This approach assumes that basic knowledge of web applications is essential. We have tested the above concepts and find out it successfully. Major benefits of the above architecture are as follows. MVC设计模式和Spring,Struts框架英文文献和中文翻译(2):http://www.751com.cn/fanyi/lunwen_39269.html
------分隔线----------------------------
推荐内容