Font Size: a A A

The Design And Realization Of The Automobile Rents Management System Based On Struts Framework And Ajax Technology

Posted on:2009-08-27Degree:MasterType:Thesis
Country:ChinaCandidate:Z Q LiFull Text:PDF
GTID:2178330338485454Subject:Computer technology
Abstract/Summary:PDF Full Text Request
The main thesis of this study is how to make use of Struts framework and Ajax technologies to build Web applications. The main use of technology including: UML Unified Modeling Language, Struts framework, Ajax technology.First of all, the thesis give an introduction on the subject of the background and significance of research and then give an analysis of the situation in the car rental industry at home and abroad. Secondly, it gives a brief introduction on the modeling tools, IBM Rational Rose,Microsoft Visio,PowerDesigner based on the language of the UML and expatiates on the status quo and the development on the Ajax technology and Struts framework; then, through the in-depth analysis on the features of the customers'requirments , it design in four modules, namely: the maintenance of basic data module, the basic business module, database management module, the module information. And then it establishes the analysis module with the Unified UML Modeling Language, and design the system use case diagram, class, timing map, state map with Rational Rose. In the model system, the design class diagram and database systems of the customers and employees are planned. Finally, it looks forward to the Struts and Ajax technology for development with the functional achievement of the system.The maximum reuse and simple, and most flexible expansion is the design development goal of this system. Through in-depth study of a variety of MVC design pattern, developers choose the maturity and stability of the Struts framework as a framework for the development of the system, a Struts application framework for the development of the structure of MVC ( "mode - View - Controller") software. Struts provides a framework for the MVC to achieve a high degree automation. It has the structure of the MVC, and includes a controller Servlet, a set of JSP pages and applications of the business logic. Controller will package the users'requests and directe them in the framework of other objects. Struts framework paper gives the three-tier structure of the main components. The view floor of the main components gives the JSP documents and ActionForm Bean. The control layer of the main components gives the ActionServlet Class Action and the type of model layer of the main components gives JavaBean describing the business model. Struts framework is built around a structure of the ActionMapping, by which the controller change the user requests inf the form of HTTP message into application actions.ActionMapping designate the request path, the planned object as well as other information that serves the request. ActionMapping created a target Action to deal with the request. Action Once a target completion of the task, it write the results directly on a JSP page to reply to a user's request, or it can allow a flow of applications to other areas to do the response. Struts is consist of Servlet, Tag Library, library utility, etc. These categories include the type of process control procedures, procedures for the realization and implementation of the logic of the Service category. And based on the request from users, ActionServlet can adjust the corresponding action to deal with it case by case, and then choose a relevant JSP document back to users end. ActionForm, a type of the data Bean category in modelling, is used to represent input data from View module. Action is a type of logical bean in modelling. It can execute a certain type of request of operation logic if expanded Action. Taglib components represent Tag Lib; ActionMapping represent mapping between JRI model and the action of operation logical components. Besides that, Struts contains also an important configuration file: Struts-config.xml, which includes ActionMapping information on Web application, information of JDBC data and ActionForm Bean, and total transmission, etc. There are several advantages of using Structs. Firstly, Struts is able to discriminate operation logic, command and data displaying modules. Secondly, functions of applications are clearly divided by Struts; and thirdly, developers can concentrate on separate development of the three modules (operation logic module, programmed control module and data displaying module) and do not need to worry about the coupling problems among these three modules.Users require the system a as quickly as possible operational capacity. It propose more stringent design requirements to the design of the system. Users can experience abundant applications and swap operation by adding Ajax technology to the user end. Users couldn't aware of the process of web referring and refreshing and the webpage does not need to be reloaded again, which gives an excellent experience for web version users. This article points out a proposal for the complex application in the development of web internet applications by using Ajax engine. It's possible to trigger an event that is trapped by JavaScript when users are interacting with internet explorer, such events could be the onblur event happened in a single input box of a form, and then JavaScript will asynchronously send the request to server through the XMLHttpRequest target which is created by JavaScript. At this point, instead of waiting for the response from server, users can continue their work, for example, browsing the current webpage, filling other forms and so on. Once server received the request, it will deal with the problem and send results back by server programm. The returned results are trapped by XMLHttpRequest and sent back to JavaScript, which then adjust the relevant DOM to control the display layer. After using Ajax, users feel like that almost all operations are able to respond as soon as possible rather than waiting for reloading the webpage.Finally, through the testing of the reservation of the car rental, the rent of the car, and vehicles clearing, the expected design goal is realized. the car rental management system framework which is based on Struts and Ajax technology is realized.
Keywords/Search Tags:WebApplication, UML, StrutsFramework, AjaxTechnology
PDF Full Text Request
Related items